ArrayIterator::seek

(PHP 5, PHP 7, PHP 8)

ArrayIterator::seekSeeks to a position

Descrizione

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

Seeks to a given position in the iterator.

Elenco dei parametri

offset

The position to seek to.

Valori restituiti

Nessun valore viene restituito.

Errori/Eccezioni

Throws an OutOfBoundsException if the offset is not seekable.