note 39662 deleted from control-structures.foreach by googleguy

From: Date: Wed, 14 Nov 2012 22:35:49 +0000
Subject: note 39662 deleted from control-structures.foreach by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191989@lists.php.net to get a copy of this message
Note Submitter: andy at barbigerous dot net ---- For dual iteration, the internal pointers may need resetting if they've been previously used in a foreach. <?PHP for( $someArray1.reset(), $someArray2.reset(); list(, $someValue1 ) = each( $someArray1 ) , list(, $someValue2 ) = each( $someArray2 ) ; ) { echo $someValue1; echo $someValue2; } ?>

« previous php.notes (#191989) next »