Andrei Zmievski wrote:
> On Tue, 20 Feb 2001, Stig Venaas wrote:
> > I could in order to save the position do $key = key($arr). To
> > restore it later, I could then do something like array_setpos($key).
> > I'm not sure if the Zend API allows for setting the position without
> > looping through the array though. If array_setpos() is passed a non-
> > existing key it should return FALSE, else TRUE.
> I don't think Zend API allows that, but it's possible if you loop
> through it.
> >
> > What do you think?
> I wouldn't have a use for that function personally, but I can't say the
> same for others...
I could think of a use for this if you were consistently traversing
a very large array, and you wanted to push and pop starting positions.


PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to