ArrayIterator::seek

(PHP 5, PHP 7, PHP 8)

ArrayIterator::seekSeeks to a position

Beschreibung

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

Seeks to a given position in the iterator.

Parameter-Liste

offset

The position to seek to.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Fehler/Exceptions

Throws an OutOfBoundsException if the offset is not seekable.