ArrayIterator::seek
PHP Manual
PHP Manual»ArrayIterator»ArrayIterator::seek

ArrayIterator::seek

(PHP 5, PHP 7, PHP 8)

ArrayIterator::seek — Seeks to a position

Опис

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

Seeks to a given position in the iterator.

Параметри

offset

The position to seek to.

Значення, що повертаються

Не повертає значень.

Помилки/виключення

Throws an OutOfBoundsException if the offset is not seekable.

To Top