note 5295 deleted from Array functions by ronabop

From: Date: Sun, 03 Sep 2000 09:24:54 +0000
Subject: note 5295 deleted from Array functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3985@lists.php.net to get a copy of this message
is there any way to get the _whole_ array using <PRE>next()</PRE> ? this code would skip the first item: <PRE> reset ($arr); while ($item = next ($arr)) { //.... do something with $item } </PRE> the problem is that next() preincrements the counter (linke ++p, instead of p++) i think reset() should go to 'one before' the first item.

« previous php.notes (#3985) next »