Notice if you call it with open empty generator, it will close while checking.
(PHP 5 >= 5.5.0, PHP 7)
Generator::valid — Check if the iterator has been closed
이 함수는 인수가 없습니다.
Returns FALSE
if the iterator has been closed. Otherwise returns TRUE
.
Notice if you call it with open empty generator, it will close while checking.