MongoCursor::key

(PECL mongo >=0.9.0)

MongoCursor::keyReturns the current result's _id, or its index within the result set

说明

public MongoCursor::key ( void ) : string|int

参数

此函数没有参数。

返回值

The current result's _id as a string. If the result has no _id, its numeric index within the result set will be returned as an integer.

参见

相关文章
php set returns the result of adding all given values to the setphp ev returns the set of backends supported by current libev configurationphp ibm db2 函数 returns an array indexed by column position representing a row 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 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 lengths of the columns of the current row in the result setphp maxdb 函数 returns the current row of a result set as an objectphp maxdb 函数 returns the thread id for the current connectionphp mssql 函数 returns an associative array of the current row in the resultphp sqlite 函数 returns the number of rows in a buffered result setphp mongocommandcursor returns the current result s index within 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 returns the cursor to the beginning of the result setphp mysqli result returns the current row of a result set as an objectphp mysqli result returns the lengths of the columns of the current row in the result setphp sqlite3stmt executes a prepared statement and returns a result set objectphp ziparchive set the compression method of an entry defined by its indexphp ziparchive set the encryption method of an entry defined by its index
关注编程学问公众号