PHP 8.4.1 Released!

MongoDB\Driver\Cursor::key

(mongodb >=1.9.0)

MongoDB\Driver\Cursor::keyReturns the current result's index within the cursor

Description

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

Parameters

This function has no parameters.

Return Values

The current result's numeric index within the cursor.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top