Generator::next

(PHP 5 >= 5.5.0, PHP 7)

Generator::next生成器继续执行

说明

public void Generator::next ( void )

参数

此函数没有参数。

返回值

没有返回值。

User Contributed Notes

mark at lange dot demon dot co dot uk 23-Jul-2016 09:13
It should be noted that next() sends an implicit null into the generator to ensure that code execution isn't blocked if the generator is expecting a value to be sent into it and the code doesn't execute any send()