Flow-control structures: Difference between revisions
Content added Content deleted
(Go explanation) |
|||
Line 674: | Line 674: | ||
# some code |
# some code |
||
goto FORK;</lang> |
goto FORK;</lang> |
||
=={{header|PHP}}== |
|||
{{works with|PHP|5.3}} |
|||
===goto=== |
|||
Introduced in PHP 5.3, PHP now has a goto flow-control structure, even though most PHP programmers see it as a bad habbit (may cause spaghetti-code). |
|||
<lang php><?php |
|||
goto a; |
|||
echo 'Foo'; |
|||
a: |
|||
echo 'Bar'; |
|||
?></lang> |
|||
Output: |
|||
<pre>Bar</pre> |
|||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |