« MongoDB\BSON\Iterator::__construct
MongoDB\BSON\Iterator::key »

MongoDB\BSON\Iterator::current

(mongodb >=1.16.0)

MongoDB\BSON\Iterator::current — Returns the current element

説明

public function MongoDB\BSON\Iterator::current(): mixed

パラメータ

この関数にはパラメータはありません。

戻り値

Returns the value of the current element.

注意:

When encountering a value encoded as 64-bit integer in the BSON structure, the return value of this method will be a MongoDB\BSON\Int64 instance.

エラー / 例外

参考

関連キーワード:
MongoDB   current   Iterator   element   Throws   Driver   Exception   construct   mongodb   mixed   encountering   encoded   integer   structure   return   method   instance   InvalidArgumentException   argument   parsing   errors   LogicException   iterator   valid   参考
関連する関数・ページ:
mongodb-bson-iterator.key   class.mongodb-bson-iterator   mongodb-bson-iterator.rewind   iterator.current   mongodb-bson-iterator.next   mongodb-bson-iterator.valid