We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yield的send()会调用next(),而 foreach本身也会调用next(),所以 在 https://github.com/elarity/advanced-php/blob/master/17.%20PHP%E4%B8%AD%E7%9A%84yield%EF%BC%88%E4%B8%8A%EF%BC%89.md 中最后提到的行为是预期行为,并不是一个bug
yield
send()
next()
foreach
https://3v4l.org/lvAuH ,其实在foreach中打一个分割线出来就很明显了
The text was updated successfully, but these errors were encountered:
自从github不支持fx56以后它就变得很难用 orz
Sorry, something went wrong.
yes!这个问题我已经get到了,foreach后会触发一次next!
哦我只是提一下以防有人被这误导。。。
No branches or pull requests
yield
的send()
会调用next()
,而foreach
本身也会调用next()
,所以 在 https://github.com/elarity/advanced-php/blob/master/17.%20PHP%E4%B8%AD%E7%9A%84yield%EF%BC%88%E4%B8%8A%EF%BC%89.md 中最后提到的行为是预期行为,并不是一个bughttps://3v4l.org/lvAuH ,其实在
foreach
中打一个分割线出来就很明显了The text was updated successfully, but these errors were encountered: