Re: [pr-645] Add offset to reset() and end()

From: Date: Fri, 18 Apr 2014 05:50:00 +0000
Subject: Re: [pr-645] Add offset to reset() and end()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-73739@lists.php.net to get a copy of this message
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

« previous php.internals (#73739) next »