Skip to content

Instantly share code, notes, and snippets.

@lyndell
Last active December 30, 2015 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lyndell/e0d9d7cfa497892a0fe9 to your computer and use it in GitHub Desktop.
Save lyndell/e0d9d7cfa497892a0fe9 to your computer and use it in GitHub Desktop.
Home sweet home infinite loop
<?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;
?>
<?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