phpday 2027 - Call for Papers

MultipleIterator::setFlags

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

MultipleIterator::setFlags — Sets flags

Description

public function MultipleIterator::setFlags(int $flags): void

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.

Return Values

No value is returned.

See Also

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top