(PHP 5 >= 5.3.0, PHP 7, PHP 8)
An Iterator that iterates over all attached iterators in parallel. At each step, it yields an array containing the current element of each attached iterator, and moves all of them forward together.
$flags = MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC)MultipleIterator::MIT_NEED_ANYDo not require all sub iterators to be valid in iteration.
MultipleIterator::MIT_NEED_ALLRequire all sub iterators to be valid in iteration.
MultipleIterator::MIT_KEYS_NUMERICKeys are created from the sub iterators position.
MultipleIterator::MIT_KEYS_ASSOCKeys are created from sub iterators associated information.
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |