note 101287 deleted from language.operators.comparison by thiago
| From: | thiago@php.net | Date: | Wed, 08 Dec 2010 14:05:15 +0000 |
| Subject: | note 101287 deleted from language.operators.comparison by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174704@lists.php.net to get a copy of this message | ||
Note Submitter: michiel ed thalent nl
----
To follow up on: Anonymous 04-Aug-2009 07:44
If you want to set a default value when a variable is not set, it also throws an error:
$varThatisNotSet = $varThatisNotSet ?: 'default';
throws a notice.
This way the shortcut is almost no use.