Question - foreach.

From: Date: Thu, 10 Jun 2010 01:49:51 +0000
Subject: Question - foreach.
Groups: php.general 
Request: Send a blank email to php-general+get-305999@lists.php.net to get a copy of this message
PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don’t need to reset an array before walking through it with foreach.'* * * *Does this mean - * *1) Before I navigate the array, foreach will bring the pointer to the starting key?* *2) After the first index, it goes to 2nd, 3rd, and nth? * Regards, Shreyas

« previous php.general (#305999) next »