note 92685 deleted from language.operators.comparison by crell

From: Date: Wed, 30 Mar 2022 21:47:33 +0000
Subject: note 92685 deleted from language.operators.comparison by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-217789@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Note: The ternary shortcut currently seems to be of no use in dealing with unexisting keys in an array, as PHP will throw an error. Take the following example. <?php $_POST['Unexisting'] = $_POST['Unexisting'] ?: false; ?> PHP will throw an error that the "Unexisting" key does not exist. The @ operator does not work here to suppress this error.

« previous php.notes (#217789) next »