Generator::valid

(PHP 5 >= 5.5.0)

Generator::validCheck if the iterator has been closed

Опис

public bool Generator::valid ( void )

Параметри

В цієї функції немає параметрів.

Значення, що повертаються

Returns FALSE if the iterator has been closed. Otherwise returns TRUE.

add a note add a note

User Contributed Notes 1 note

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