PHP - Manual: MongoDB\Driver\Cursor::current
2024-11-13
(mongodb >=1.9.0)
MongoDB\Driver\Cursor::current — Returns the current element
此函数没有参数。
Returns the current result document as an array or object, depending on the
cursor's type map. If iteration has not started or the current position
is not valid, null
will be returned.
官方地址:https://www.php.net/manual/en/mongodb-driver-cursor.current.php