note 35104 deleted from function.each by cece

From: Date: Tue, 19 Aug 2003 21:55:36 +0000
Subject: note 35104 deleted from function.each by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54718@lists.php.net to get a copy of this message
Note Submitter: php@keithtyler.com ---- You cannot, apparently, do the following: while ($xary=each($x) && $yary=each($y)) { ... it appears that the second each, on $y, disturbs (re-each()es?) the first each, on $x. You have to do: while ($xary=each($x)) { $yary=each($y); ...

« previous php.notes (#54718) next »