array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'limititerator.seek.php', 1 => 'LimitIterator::seek', ), 'up' => array ( 0 => 'class.limititerator.php', 1 => 'LimitIterator', ), 'prev' => array ( 0 => 'limititerator.rewind.php', 1 => 'LimitIterator::rewind', ), 'next' => array ( 0 => 'limititerator.valid.php', 1 => 'LimitIterator::valid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/limititerator/seek.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
LimitIterator::seek — Seek to the given position
Moves the iterator to the offset specified by offset
.
offset
The position to seek to.
Returns the offset position after seeking.
Throws an OutOfBoundsException if the position is outside of the limits specified in LimitIterator::__construct().