PHP Null Coalescing Operator

In php 7 you can check if a variable contains null value and assign accordingly:

$a = $x ?? 'default';

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *