LimitIterator::next

(PHP 5 >= 5.1.0, PHP 7) Move the iterator forward public void LimitIterator::next ( void ) Moves the iterator forward. Returns: No value is returned. See also: LimitIterator::current() - LimitIterator::key() - LimitIterator::rewind() -

LimitIterator::rewind

(PHP 5 >= 5.1.0, PHP 7) Rewind the iterator to the specified starting offset public void LimitIterator::rewind ( void ) Rewinds the iterator to the starting offset specified in LimitIterator::__construct(). Returns: No value is returned. See also: LimitIterator::current() - LimitIt

LimitIterator::seek

(PHP 5 >= 5.1.0, PHP 7) Seek to the given position public int LimitIterator::seek ( int $position ) Moves the iterator to the offset specified by position. Parameters: position The position to seek to. Returns: Returns the offset position after seeking. Exception: Throws an OutOfBoundsException if the position

LimitIterator::getPosition

(PHP 5 >= 5.1.0, PHP 7) Return the current position public int LimitIterator::getPosition ( void ) Gets the current zero-based position of the inner Iterator. Returns: The current position. Examples: LimitIterator::getPosition() example <?php $fruits = array(     'a' => 'apple',     'b' => 'banana',     'c' =&

LimitIterator::key

(PHP 5 >= 5.1.0, PHP 7) Get current key public mixed LimitIterator::key ( void ) Gets the key for the current item in the inner Iterator. Returns: Returns the key for the current item. See also: LimitIterator::getPosition() - LimitIterator::current() - Lim

LimitIterator::getInnerIterator

(PHP 5 >= 5.1.0, PHP 7) Get inner iterator public Iterator LimitIterator::getInnerIterator ( void ) Gets the inner Iterator. Returns: The inner iterator passed to LimitIterator::__construct(). See also: LimitIterator::__construct() - IteratorIterator::getInnerIterator() -

LimitIterator::current

(PHP 5 >= 5.1.0, PHP 7) Get current element public mixed LimitIterator::current ( void ) Gets the current element of the inner Iterator. Returns: Returns the current element or NULL if there is none. See also: LimitIterator::key() - LimitIterator::next() -

LimitIterator::__construct

(PHP 5 >= 5.1.0, PHP 7) Construct a LimitIterator public LimitIterator::__construct ( Iterator $iterator [, int $offset = 0 [, int $count = -1 ]] ) Constructs a new LimitIterator from an iterator with a given starting offset and maximum count. Parameters: iterator The Iterator to limit. offset Optional offset of the limit.

IteratorIterator::valid

(PHP 5 >= 5.1.0, PHP 7) Checks if the iterator is valid public bool IteratorIterator::valid ( void ) Checks if the iterator is valid. Returns: Returns TRUE if the iterator is valid, otherwise FALSE See also: iterator_count() - IteratorIterator::current() -

IteratorIterator::getInnerIterator

(PHP 5 >= 5.1.0, PHP 7) Get the inner iterator public Traversable IteratorIterator::getInnerIterator ( void ) Get the inner iterator. Returns: The inner iterator as passed to IteratorIterator::__construct(). See also: Iterator - OuterIterator -