note 72400 deleted from control-structures.foreach by danbrown

From: Date: Tue, 28 Apr 2009 13:05:03 +0000
Subject: note 72400 deleted from control-structures.foreach by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153908@lists.php.net to get a copy of this message
Note Submitter: GPatmore ---- In reference to the comment by Timon Van Overveldt... Although your suggestion works for changing the original array, a copy of the original array is still created for nothing. This may become a performance issue when used with a large array. It has been suggested that if your code must be php4 compatible, use the alternative list()...each() style explained above to iterate through an array if you don't need to use a copy.

« previous php.notes (#153908) next »