note 23198 deleted from migration4 by dams

From: Date: Sat, 27 Jul 2002 23:00:39 +0000
Subject: note 23198 deleted from migration4 by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33726@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.

« previous php.notes (#33726) next »