Last active
December 30, 2015 15:57
-
-
Save lyndell/e0d9d7cfa497892a0fe9 to your computer and use it in GitHub Desktop.
Home sweet home infinite loop
This file contains 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 | |
header('Content-Type: text/plain'); | |
# GOTO | |
echo "\n\n"; | |
echo "with GOTO:\n"; | |
home: | |
echo "10 HOME \n"; | |
echo "20 SWEET \n"; | |
echo "20 SWEET \n"; goto home; | |
?> |
This file contains 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 | |
header('Content-Type: text/plain'); | |
# no GOTO | |
echo "without GOTO:\n"; | |
echo "10 HOME \n"; | |
echo "20 SWEET \n"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment