Generator::valid

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

Generator::validCheca se o iterador foi fechado

Descrição

public Generator::valid ( ) : bool

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna false se o iterador foi fechado. Caso contrário retornará true.

add a note 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