Re: Allow Iterator to be used with current, next, reset, key functions
| From: | Levi Morrison | Date: | Sun, 30 Oct 2016 16:31:44 +0000 |
| Subject: | Re: Allow Iterator to be used with current, next, reset, key functions | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96654@lists.php.net to get a copy of this message | ||
On Sun, Oct 30, 2016 at 7:30 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> On Sun, Oct 30, 2016 at 8:24 PM, Rasmus Schultz <rasmus@mindplay.dk> wrote:
>> I'd like to just remind you of the fact that some
>> of these functions, reset() and end() in particular, are often used
>> not because someone cares about moving the internal pointer, but as a
>> means of getting the first/last items of an array.
>
> I'm one of them.
>
> --
> Yasuo Ohgaki
> yohgaki@ohgaki.net
Are you after the last value, the last key, or both?