MongoCommandCursor
PHP Manual

MongoCommandCursor::key

(PECL mongo >=1.5.0)

MongoCommandCursor::keyReturns the current result's index within the result set

说明

public int MongoCommandCursor::key ( void )

参数

此函数没有参数。

返回值

The current result's index within the result set.

参见


MongoCommandCursor
PHP Manual