Returns an iterator for the BSON array

# MongoDB\BSON\PackedArray::getIterator

(mongodb >=1.16.0)

MongoDB\BSON\PackedArray::getIterator — Returns an iterator for the BSON array

### 説明

final public function MongoDB\BSON\PackedArray::getIterator(): MongoDB\BSON\Iterator

### パラメータ

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

### 戻り値

Returns a MongoDB\BSON\Iterator instance that can be used to iterate over all indexes in the array.

### エラー / 例外

- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\UnexpectedValueException if the BSON iterator could not be initialized.

### 参考

- » BSON Types

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open