phpday 2027 - Call for Papers

MultipleIterator::setFlags

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

MultipleIterator::setFlags — Sets flags

说明

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.

返回值

没有返回值。

参见

+添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top