php Null coalescing operator (??)
Abanoub Makram
Abanoub Makram
Software Developer Senior Technical Lead (php | Drupal | Laravel) at _vois
$x =?expr1????expr2;
Returns the value of $x.
The value of $x is?expr1?if?expr1?exists, and is not NULL.
If?expr1?does not exist, or is NULL, the value of $x is?expr2.
Introduced in PHP 7