Re: Set Current Array Pointer
| From: | Chris Boget | Date: | Tue, 18 Feb 2003 16:27:14 +0000 |
| Subject: | Re: Set Current Array Pointer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136031@lists.php.net to get a copy of this message | ||
> is it possible to set the pointer of an array to a specific
> key or value of the array, so i can write an array navi-
> gation script?
> Maybe there is a way to use pos() to set it to a specific
> place in the array, but i dont know how.
Well, you can always access the array elements using a
numerical index. And you can use whatever method is
most convenient to set that index. Alternately, you can
look into current() and next().
Chris