Re: New operator suggestion

From: Date: Sat, 04 Sep 2021 22:42:50 +0000
Subject: Re: New operator suggestion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-115950@lists.php.net to get a copy of this message
David Kolář wrote on 9/4/21 17:19: > Back to the suggestion - I suggest creating a new IFNULL operator, which > will simply test if > expression is null. If not, it returns left-hand part, if yes, it > returns right-hand part. This is already what the ?? operator does. For example: https://3v4l.org/RlDjK Are you suggesting that it should emit a warning if $var is undefined, as it does in this case? https://3v4l.org/aZAj0 Cheers, Ben

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#115950) next »