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 a result set listing the columns and associated privileges for a tablephp ibm db2 函数 returns a result set listing the columns and associated metadata for a tablephp ibm db2 函数 returns the name of the column in the result setphp ibm db2 函数 returns the position of the named column in a result setphp ibm db2 函数 returns the precision 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 primary keys 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 sqlite 函数 fetches the current row from a result set as an arrayphp sqlite 函数 returns the current row indexphp 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 advances the cursor to the next result and returns that resultphp 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 mysqlnduhconnection returns the thread id for the current connectionphp solrquery returns whether or not to include the lower bound in the result set
关注编程学问公众号