(PHP 5 >= 5.3.0, PHP 7, PHP 8)
MultipleIterator::setFlags — Sets flags
Replaces the flags that control how the attached iterators are iterated over.
As MultipleIterator::MIT_NEED_ANY and
MultipleIterator::MIT_KEYS_NUMERIC are
0, a flag that is not given falls back to them: for
example, passing only MultipleIterator::MIT_KEYS_ASSOC
also switches the iterator to
MultipleIterator::MIT_NEED_ANY.
flags
A bitmask of the
MultipleIterator
constants: MultipleIterator::MIT_NEED_ALL or
MultipleIterator::MIT_NEED_ANY, combined with
MultipleIterator::MIT_KEYS_NUMERIC or
MultipleIterator::MIT_KEYS_ASSOC.
No value is returned.