ArrayIterator::seek

(PHP 5, PHP 7, PHP 8)

ArrayIterator::seekSeeks to a position

Опис

public 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.