Re: [pr-645] Add offset to reset() and end()
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).
I'm not sure end() part makes sense for most iterators (I know reset and
end doesn't currently work on Iterator, but at least for reset there's
no reason why it should not). For reset, it's pretty trivial to
implement it in user code.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
Thread (7 messages)