phpday 2027 - Call for Papers

MultipleIterator::valid

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

MultipleIterator::valid — Checks the validity of sub iterators

Опис

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.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

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.

Прогляньте також

+add a note

User Contributed Notes

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