Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Generator::throwGenerator::__wakeup>
^GeneratorLast updated: Mon, 26 Oct 2026

Generator::valid

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

Generator::valid — Check if the iterator has been closed

Description

public function Generator::valid(): bool

Parameters

This function has no parameters.

Return Values

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


<Generator::throwGenerator::__wakeup>
^GeneratorLast updated: Mon, 26 Oct 2026