PHP - Manual: MongoDB\Driver\Cursor::key
2024-11-15
(mongodb >=1.9.0)
MongoDB\Driver\Cursor::key — Returns the current result's index within the cursor
此函数没有参数。
The current result's numeric index within the cursor.
官方地址:https://www.php.net/manual/en/mongodb-driver-cursor.key.php