note 13812 rejected and deleted from control-structures.foreach.php by zak

From: Date: Wed, 04 Jul 2001 10:11:16 +0000
Subject: note 13812 rejected and deleted from control-structures.foreach.php by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-14965@lists.php.net to get a copy of this message
I think foreach would be more useful if we could work not on a copy of the array but on the array itself, at least as an option.<br> In my mind a statement like:<br> foreach ($array as $key => &$value)<br> should allow us to modify the array elements.<br>I think it would be nice, as 1) the programmer explicitly asks for a reference to the 'real' value and 2) it is backward compatible

« previous php.notes (#14965) next »