note 54133 deleted from control-structures.foreach by jacques

From: Date: Sat, 25 Jun 2005 10:24:52 +0000
Subject: note 54133 deleted from control-structures.foreach by jacques
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90940@lists.php.net to get a copy of this message
Note Submitter: alex stram ---- Based on what "endofyourself at yahoo dot com" says on trying to create something like, <?PHP foreach( $someArray1 as $someValue1 , $someArray2 as $someValue2 ) { echo $someValue1; echo $someValue2; } ?> You may have more luck with combining them, like so (depending on what exactly you're trying to do): <?PHP list(,$someValue1 ) = each( $someArray1); foreach ($SomeArray2 as $SomeValue2) { { } ?>

« previous php.notes (#90940) next »