Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<LimitIterator::rewindLimitIterator::valid>
^LimitIteratorLast updated: Mon, 26 Oct 2026

LimitIterator::seek

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

LimitIterator::seek — Seek to the given position

Description

public function LimitIterator::seek(int $offset): int

Moves the iterator to the offset specified by offset.

Parameters

offset

The position to seek to.

Return Values

Returns the offset position after seeking.

Errors/Exceptions

Throws an OutOfBoundsException if the position is outside of the limits specified in LimitIterator::__construct().

See Also


<LimitIterator::rewindLimitIterator::valid>
^LimitIteratorLast updated: Mon, 26 Oct 2026