PHP 8.6.0RC7 available for testing

MultipleIterator::valid

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

MultipleIterator::valid — Checks the validity of sub iterators

Descrizione

public function MultipleIterator::valid(): bool

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.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

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.

Vedere anche:

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top