MongoCommandCursor::key
(PECL mongo >=1.5.0)
MongoCommandCursor::key — Returns the current result's index within the result set
说明
public MongoCommandCursor::key
( void
) : int
参数
此函数没有参数。
返回值
The current result's index within the result set.
参见
- Iterator::key() - 返回当前元素的键