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.
Показать файл
Открыть проект
Примеры использования интерфейса
Открытые методы
Метод |
Описание |
|
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. |
|
Описание методов
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.