Anonymous user
Flow-control structures: Difference between revisions
→{{header|Perl}}
(Go explanation) |
|||
Line 674:
# some code
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}}==
|