표준 PHP 라이브러리(SPL) LimitIterator::seek

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

LimitIterator::seek — Seek to the given position


설명

public LimitIterator::seek(int $offset): int

offset으로 지정된 오프셋으로 반복자를 이동합니다.


매개변수

offset
The position to seek to.

반환 값

검색 후 오프셋 위치를 반환합니다.


오류/예외

위치가 LimitIterator::__construct()에 지정된 제한을 벗어나면 OutOfBoundsException이 발생합니다.


기타