MongoCursor::rewind
Returns the cursor to the beginning of the result set
Description
public void MongoCursor::rewind
( void
)
<?php
public function rewind() {
$this->reset();
$this->next();
}
?>
Parameters
This function has no parameters.
Errors/Exceptions
Throws MongoConnectionException if it cannot reach the
database and MongoCursorTimeoutException if the
timeout is exceeded.