Php/docs/mongocommandcursor.key
From Get docs
MongoCommandCursor::key
(PECL mongo >=1.5.0)
MongoCommandCursor::key — Returns the current result's index within the result set
Description
public MongoCommandCursor::key ( ) : int
Parameters
This function has no parameters.
Return Values
The current result's index within the result set.