note 99078 deleted from control-structures.foreach by danbrown

From: Date: Tue, 27 Jul 2010 01:21:26 +0000
Subject: note 99078 deleted from control-structures.foreach by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171150@lists.php.net to get a copy of this message
Note Submitter: marek995 at seznam dot cz ---- I needed something like a "double foreach", which works with two arrays, so there it is: for($counter = 0; ($array1[$counter] != true) and ($array2[$counter] != true); $counter = $counter + 1) { echo($array1[$counter]); echo($array2[$counter]); ... } I didn't find a way, how to do this with the foreach cycle

« previous php.notes (#171150) next »