..
$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.