MongoDB\BSON\PackedArray::getIterator
(mongodb >=1.16.0)
MongoDB\BSON\PackedArray::getIterator — Returns an iterator for the BSON array
Description
Parameters
This function has no parameters.
Return Values
Returns a MongoDB\BSON\Iterator instance that can be used to iterate over all indexes in the array.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\UnexpectedValueException if the BSON iterator could not be initialized.
See Also
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
