MongoCursor::rewind

(PECL mongo >=0.9.0)

MongoCursor::rewindReturns the cursor to the beginning of the result set

说锟斤拷

public MongoCursor::rewind ( void ) : void

This is identical to the function:

<?php

public function rewind() {
    
$this->reset();
    
$this->next();
}

?>

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

NULL.

锟斤拷锟斤拷锟届常

Throws MongoConnectionException if it cannot reach the database and MongoCursorTimeoutException if the timeout is exceeded.

锟轿硷拷

  • Iterator::rewind() - 锟斤拷锟截碉拷锟斤拷锟斤拷锟斤拷锟侥碉拷一锟斤拷元锟斤拷