Php/docs/mongodb-driver-cursor.key
来自菜鸟教程
MongoDB\Driver\Cursor::key
(mongodb >=1.9.0)
MongoDB\Driver\Cursor::key — Returns the current result's index within the cursor
说明
public MongoDB\Driver\Cursor::key ( ) : int
参数
此函数没有参数。
返回值
The current result's numeric index within the cursor.