(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Generator::valid — Check if the iterator has been closed
This function has no parameters.
Returns false if the iterator has been closed. Otherwise returns true.
false
true