Created
October 4, 2013 15:19
-
-
Save amcgowanca/6827696 to your computer and use it in GitHub Desktop.
PHP's break; with numeric indicator of number of scope structures to break.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
do { | |
for ($i = 0; $i < 10; $i++) { | |
print $i . ', '; | |
if ($i == 1) { | |
break 2; | |
} | |
} | |
} | |
while (true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment