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.

Прогляньте також