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.