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 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 data type of the indicated column in a result setphp ibm db2 函数 returns the width of the current value of the indicated column in a result setphp ibm db2 函数 returns a result set listing primary keys for a tablephp ibm db2 函数 returns a result set listing stored procedure parametersphp ibm db2 函数 returns a result set listing the stored procedures registered in a databasephp ibm db2 函数 returns a single column from a row in the result setphp maxdb 函数 returns the next field in the result setphp 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 mysqli result returns the next field in the result setphp mysqli result returns an array of objects representing the fields in a result setphp mysqli result returns the current row of a result set as an objectphp mysqli stmt returns result set metadata from a prepared statementphp solrquery returns whether or not to include the lower bound in the result setphp solrquery returns whether or not to include the upper bound term in the result setphp sqlite3result returns the number of columns in the result set
关注编程学问公众号