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 current capacityphp 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 width of the current value 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 the index and statistics 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 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 mongocommandcursor returns the current result s index within the result setphp 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 solrquery returns the offset in the complete result setphp ziparchive returns the entry contents using its indexphp ziparchive returns the name of an entry using its indexphp ziparchive set the external attributes of an entry defined by its index
关注编程学问公众号