php8.5
Home/ Manual/ predefined / generator/ Generator::valid

Generator::valid

PHP function Edit on GitHub ✎

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

Check if the iterator has been closed

Description

Generator::valid(): bool

Parameters Parameters

Return Values

Returns false if the iterator has been closed. Otherwise returns true.

Source: language/predefined/generator/valid.xml · from the official PHP manual (php/doc-en)