note 40334 added to language.operators.errorcontrol
| From: | manicdepressive at mindless dot com | Date: | Sun, 29 Feb 2004 09:44:08 +0000 |
| Subject: | note 40334 added to language.operators.errorcontrol | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65986@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/language.operators.errorcontrol.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40334
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40334&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40334&report=yes
Search -- http://master.php.net/manage/user-notes.php