(PHP 5 >= 5.3.0, PHP 7, PHP 8)
MultipleIterator::valid — Checks the validity of sub iterators
Checks the validity of the attached iterators. With
MultipleIterator::MIT_NEED_ALL, all of them must be
valid; with MultipleIterator::MIT_NEED_ANY, at least
one of them must be valid.
This function has no parameters.
Returns true if all attached iterators are valid
(MultipleIterator::MIT_NEED_ALL) or at least one is
valid (MultipleIterator::MIT_NEED_ANY), otherwise
false. If no iterator is attached, false is returned.