note 95598 added to language.references
| From: | morphcham at gmail dot com | Date: | Mon, 11 Jan 2010 17:24:58 +0000 |
| Subject: | note 95598 added to language.references | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164862@lists.php.net to get a copy of this message | ||
If we do:
<?php
$foo = array();
var_export( $foo );
?>
We get:
<?php
array ( )
?>
Nothing mystical yet. But if we do:
<?php
//assign a variable by reference to a non-existent index
$bar = &$foo[ 0 ];
var_export( $foo );
?>
Surprisingly (at least to me), we get:
<?php
array ( 0 => NULL, )
?>
----
Server IP: 208.69.120.55
Probable Submitter: 96.39.167.209
----
Manual Page -- http://www.php.net/manual/en/language.references.php
Edit -- https://master.php.net/note/edit/95598
Del: integrated -- https://master.php.net/note/delete/95598/integrated
Del: useless -- https://master.php.net/note/delete/95598/useless
Del: bad code -- https://master.php.net/note/delete/95598/bad+code
Del: spam -- https://master.php.net/note/delete/95598/spam
Del: non-english -- https://master.php.net/note/delete/95598/non-english
Del: in docs -- https://master.php.net/note/delete/95598/in+docs
Del: other reasons-- https://master.php.net/note/delete/95598
Reject -- https://master.php.net/note/reject/95598
Search -- https://master.php.net/manage/user-notes.php