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 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 foreign keys for a tablephp 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 an array of resources representing the fields in a result setphp 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 result set metadata from a prepared statementphp mssql 函数 returns an associative array of the current row in the resultphp sqlite 函数 returns the number of fields in a result setphp 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 swftext returns the leading of the current font at its current size or 0 if not availablephp ziparchive set the comment of an entry defined by its indexphp ziparchive set the compression method of an entry defined by its index
关注编程学问公众号