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

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

The current result's numeric index within the cursor.

參見