Verification: a143cc29221c9be0

Php assign if not null



PHP 7 adds a new feature to handle this.

The null coalescing operator (??) has been added as syntactic sugar for the common case of needing to use a ternary in conjunction with isset(). It returns its first operand if it exists and is not NULL; otherwise it returns its second operand.