note 40334 deleted from language.operators.errorcontrol by tularis
| From: | tularis@php.net | Date: | Tue, 12 Aug 2008 16:37:55 +0000 |
| Subject: | note 40334 deleted from language.operators.errorcontrol by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143409@lists.php.net to get a copy of this message | ||
Note Submitter: manicdepressive at mindless dot com
----
taking the value of a non existant element:
$foo = @$array['not_here']
will work as described, setting $foo to NULL,
but taking a *reference* to a non-existant element:
$foo =& @$array['not_here']
will create the element with a NULL value, which $foo will then referece.
-- code till dawn, mark meves