note 24315 rejected from function.prev by maxim

From: Date: Tue, 13 Aug 2002 01:54:07 +0000
Subject: note 24315 rejected from function.prev by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34911@lists.php.net to get a copy of this message
Hmmm, it seems that once you prev() an array past its start, you can't next() (or each() ) it to get it back into valid data value ranges, it just keeps returning FALSE's. The internal pointer gets jammed. Is this behaviour expected and desired? Have I misinterpreted these function's usage? I was able to workaround by storing the value I needed before prev(), then reset() ing and incrememting until I got to the previous value.

« previous php.notes (#34911) next »