MongoCursor::next

(PECL mongo >=0.9.0)

MongoCursor::nextAdvances the cursor to the next result, and returns that result

说明

public MongoCursor::next ( void ) : array

参数

此函数没有参数。

返回值

Returns the next document.

错误/异常

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

参见

相关文章
php map returns a representation that can be converted to jsonphp queue returns a representation that can be converted to jsonphp sequence returns the result of applying a callback to each valuephp evperiodic returns the absolute time that this watcher is supposed to trigger nextphp cubrid mysql 兼容性函数 move the result set cursor to the specified field offsetphp ibm db2 函数 returns an array indexed by column position representing a row in a result setphp ibm db2 函数 returns the auto generated id of the last insert query that successfully executed on this connectionphp ibm db2 函数 returns a result set listing the unique row identifier columns for a tablephp ibm db2 函数 returns a result set listing the index and statistics for a tablephp maxdb 函数 returns the next field in the result setphp oci8 函数 returns the next child statement resource from a parent statement resource that has oracle database 12c implicit result setsphp mongocommandcursor advances the cursor to the next resultphp mongocommandcursor executes the command and resets the cursor to the start of 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 mongocursor checks if the cursor is reading a valid resultphp mysqli result returns the next field in the result setphp sqlite3stmt executes a prepared statement and returns a result set object
关注编程学问公众号