php8.5
Home/ Manual/ spl / emptyiterator/ EmptyIterator::valid

EmptyIterator::valid

PHP function Edit on GitHub ✎

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

Checks whether the current element is valid

Description

EmptyIterator::valid(): false

Checks whether the current element is valid.

Note

The EmptyIterator is always empty and will never have a valid value. The return value is always false.

Parameters Parameters

Return Values

false

Source: reference/spl/emptyiterator/valid.xml · from the official PHP manual (php/doc-en)