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.

参见

相关文章
php ibm db2 函数 returns a result set listing the columns and associated privileges for a tablephp ibm db2 函数 returns a result set listing the columns and associated metadata for a tablephp ibm db2 函数 returns an array indexed by column name representing a row in a result setphp ibm db2 函数 returns an array indexed by both column name and position representing a row in a result setphp ibm db2 函数 returns the name of the column in the result setphp ibm db2 函数 returns the position of the named column in a result setphp ibm db2 函数 returns the precision of the indicated column in a result setphp ibm db2 函数 returns the scale of the indicated column in a result setphp ibm db2 函数 returns the number of fields contained in a result setphp ibm db2 函数 returns a result set listing primary keys for a tablephp ibm db2 函数 returns a result set listing the tables and associated privileges in a databasephp ibm db2 函数 returns a result set listing the tables and associated metadata in a databasephp mongocursor advances the cursor to the next result and returns that resultphp mongocursor returns the current result s id or its index within the result setphp mongocursor advances the cursor to the next result and returns that resultphp mongocursor returns the cursor to the beginning of the result setphp mongocursor checks if the cursor is reading a valid resultphp mysqli result returns the lengths of the columns of the current row in the result setphp solrquery returns the offset in the complete result setphp solrquery returns whether or not to include the lower bound in the result set
关注编程学问公众号