note 23198 added to migration4

From: Date: Thu, 11 Jul 2002 15:39:22 +0000
Subject: note 23198 added to migration4
Groups: php.notes 
Request: Send a blank email to php-notes+get-32908@lists.php.net to get a copy of this message
In PHP3, setting an array element to a variable did not cause the element to be created. In PHP4, it does and it doesn't. For example, in both versions, the following: $x['y'] = $z; if (!isset($x['y'])) echo "not "; echo "set"; where $z is not set, will output "not set", as expected. *However*, in PHP4, walking through the array with each() will return the 'y' element. In PHP3 it doesn't. -- http://www.php.net/manual/en/migration4.php http://master.php.net/manage/user-notes.php?action=edit+23198 http://master.php.net/manage/user-notes.php?action=delete+23198 http://master.php.net/manage/user-notes.php?action=reject+23198

« previous php.notes (#32908) next »