📜  php代码示例中的空安全运算符

📅  最后修改于: 2022-03-11 14:54:34.428000             🧑  作者: Mango

代码示例2
The syntax is similar to the property/method access operator (->), and following the nullable type pattern, the null-safe operator is ?->.

$foo?->bar?->baz;
Null safe operator silently returns null if the expression to the left side evaluates to null.