MongoDB\Driver\Cursor::key

Returns the current result's index within the cursor

Description

public int MongoDB\Driver\Cursor::key()

Parameters

This function has no parameters.

Return Values

The current result's numeric index within the cursor.

See Also

  • Iterator::key