Generator::valid
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Generator::valid — 检查迭代器是否被关闭
说明
参数
此函数没有参数。
+添加备注
用户贡献的备注 1 note
Igor Frolov ¶
5 years ago
Notice if you call it with open empty generator, it will close while checking.