Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bwaxxlo
· 11y ago · 0 comments
I wanted to actually ask the same thing! I knew of continue but I never encountered such a scenario. It's a poor man's generator.
Comments
[–]
arcatek
11y ago
In other languages (such as PHP), the same thing can sometimes be achieved by using "break N" / "continue N", where N is the number of loop you wish to break/continue.
[–]
mgkimsal
11y ago
Specifically in PHP, though, you can't (anymore) break a variable value.
break $n;
isn't valid since PHP 5.4