Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

null safe operator in php

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.
Source by php.watch #
 
PREVIOUS NEXT
Tagged: #null #safe #operator #php
ADD COMMENT
Topic
Name
6+1 =