MongoCommandCursor
PHP Manual

MongoCommandCursor::key

(PECL mongo >=1.5.0)

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

Description

public int MongoCommandCursor::key ( void )

Parameters

This function has no parameters.

Return Values

The current result's index within the result set.

See Also


MongoCommandCursor
PHP Manual