PHP 8.1.0 Alpha 2 available for testing

MongoDB\Driver\Cursor::key

(mongodb >=1.9.0)

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

说明

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

参数

此函数没有参数。

返回值

The current result's numeric index within the cursor.

参见

add a note add a note

User Contributed Notes

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