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 value at a given indexphp 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 stored procedure parametersphp ibm db2 函数 returns a result set listing the stored procedures registered in a databasephp 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 mongocommandcursor returns the current result s index within the result setphp mongocursor returns the current elementphp 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 next field in 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 whether or not to include the upper bound term in the result setphp sqlite3result returns the number of columns in the result setphp swftext returns the ascent of the current font at its current size or 0 if not availablephp swftext returns the descent of the current font at its current size or 0 if not available
关注编程学问公众号