(PHP 5 >= 5.3.0, PHP 7)
An Iterator that sequentially iterates over all attached iterators
$flags
= MultipleIterator::MIT_NEED_ALL|MultipleIterator::MIT_KEYS_NUMERIC ] )public attachIterator ( Iterator $iterator [, string $infos ] ) : void
public containsIterator ( Iterator $iterator ) : bool
public countIterators ( ) : int
public current ( ) : array
public detachIterator ( Iterator $iterator ) : void
public getFlags ( ) : int
public key ( ) : array
public next ( ) : void
public rewind ( ) : void
public setFlags ( int $flags ) : void
public valid ( ) : bool}
MultipleIterator::MIT_NEED_ANY
Do not require all sub iterators to be valid in iteration.
MultipleIterator::MIT_NEED_ALL
Require all sub iterators to be valid in iteration.
MultipleIterator::MIT_KEYS_NUMERIC
Keys are created from the sub iterators position.
MultipleIterator::MIT_KEYS_ASSOC
Keys are created from sub iterators associated information.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.multipleiterator.php