php教程

Generator::valid

(PHP 5 >= 5.5.0, PHP 7)

Generator::valid检查迭代器是否被关闭

说明

public Generator::valid ( void ) : bool

参数

此函数没有参数。

返回值

如果迭代器已被关闭返回 FALSE,否则返回 TRUE

User Contributed Notes

Igor Frolov 17-May-2019 10:01
Notice if you call it with open empty generator, it will close while checking.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788