PHP 인터페이스 Pinq\Iterators\Standard\IIterator

.. $iterator->next(); } With Pinq extension: $iterator->rewind(); while (list($key, $value) = $iterator->fetch()) { ... } Or with value by reference: $iterator->rewind(); while ($element = $iterator->fetch()) { $key = $element[0]; $value =& $element[1]; ... } Iterators can implement this interface while maintaining compatibility with the native API.
저자: Elliot Levin ([email protected])
상속: extends Iterator, extends Pinq\Iterators\IIterator
파일 보기 프로젝트 열기: timetoogo/pinq 0 사용 예제들

공개 메소드들

메소드 설명
fetch ( ) : array | null If the current position is valid, returns an array with index zero as the key and index one as the value and advances the iterator to the next position or returns null if the current position is invalid.

메소드 상세

fetch() 공개 메소드

If the current position is valid, returns an array with index zero as the key and index one as the value and advances the iterator to the next position or returns null if the current position is invalid.
public fetch ( ) : array | null
리턴 array | null The element array or null if invalid position