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
 
<ArrayIterator::rewindArrayIterator::serialize>
^ArrayIteratorLast updated: Mon, 26 Oct 2026

ArrayIterator::seek

(PHP 5, PHP 7, PHP 8)

ArrayIterator::seek — Seeks to a position

Description

public function ArrayIterator::seek(int $offset): void

Seeks to a given position in the iterator.

Parameters

offset

The position to seek to.

Return Values

No value is returned.

Errors/Exceptions

Throws an OutOfBoundsException if the offset is not seekable.


<ArrayIterator::rewindArrayIterator::serialize>
^ArrayIteratorLast updated: Mon, 26 Oct 2026