PHP 8.3.4 Released!

Generator::valid

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

Generator::validVérifie si l'itérateur a été fermé

Description

public Generator::valid(): bool

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne false si l'itérateur a été fermé. Sinon, retourne true.

add a note

User Contributed Notes 1 note

up
1
Igor Frolov
4 years ago
Notice if you call it with open empty generator, it will close while checking.
To Top