Re: [pr-645] Add offset to reset() and end()
On Thu, Apr 17, 2014 at 6:39 PM, Tjerk Meesters <tjerk.meesters@gmail.com>wrote:
> Hi,
>
> I've added a PR that satisfies #31375.
>
> https://github.com/php/php-src/pull/645
>
> It adds a second optional argument to reset() and end() to specify the
> number of elements that should be skipped (forward or backward).
>
> Currently, negative offsets are ignored. Should we raise a notice for such
> cases? Something like:
>
> "Negative offsets are not supported."
>
> Any feedback is welcome. Thanks!
>
Do you have a specific use-case for these changes?
Thread (7 messages)