Generator::send
Generator::send
(PHP 5 >= 5.5.0, PHP 7)
Generator::send — Send a value to the generator
Description
public mixed Generator::send ( mixed $value )
Sends the given value to the generator as the result of the current yield expression and resumes execution of the generator.
If the generator is not at a yield expression when this method is called, it will first be let to advance to the first 登录查看完整内容