note 9448 deleted from control-structures.foreach by sniper

From: Date: Wed, 08 Oct 2003 04:12:18 +0000
Subject: note 9448 deleted from control-structures.foreach by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58021@lists.php.net to get a copy of this message
Note Submitter: orque@mac.com ---- In addition to my note above, I've found the best solution is to "for" over your array and copy it into a new one to use (copying the values into the same array results in the same wackiness). I mention this because if you use several of the other php functions including array_slice, array_splice, array_merge they will put your array permanently in the "order of creation" state and you can't loop correctly through it with a for loop. Hope this helps.

« previous php.notes (#58021) next »