Coalesce And Null

../_images/coalesce_is_null.png

I’m still struggling to pick a side in this debate.

@ is too slow, because it merely hides the error.

?? looks dumb. It looks like : if it is null, use null as default.

The if() command is long to type.

Is there another way to handle this issue?

See Also

PHP Features