note 91714 added to control-structures.goto
| From: | CliffG at osu1 dot php dot net | Date: | Wed, 24 Jun 2009 00:07:59 +0000 |
| Subject: | note 91714 added to control-structures.goto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157312@lists.php.net to get a copy of this message | ||
@91707:
The script will just continue executing from the line after the label. There is no break, no end,
no closing bracket, it just jumps to a new point of execution. There's nothing to be
'over with'.
I won't comment on whether I think goto is good or bad, but I will say that even C# still has
the goto, so it's obvious some people still believe it has its uses.
----
Server IP: 208.69.120.35
Probable Submitter: 207.119.176.174
----
Manual Page -- http://www.php.net/manual/en/control-structures.goto.php
Edit -- https://master.php.net/note/edit/91714
Del: integrated -- https://master.php.net/note/delete/91714/integrated
Del: useless -- https://master.php.net/note/delete/91714/useless
Del: bad code -- https://master.php.net/note/delete/91714/bad+code
Del: spam -- https://master.php.net/note/delete/91714/spam
Del: non-english -- https://master.php.net/note/delete/91714/non-english
Del: in docs -- https://master.php.net/note/delete/91714/in+docs
Del: other reasons-- https://master.php.net/note/delete/91714
Reject -- https://master.php.net/note/reject/91714
Search -- https://master.php.net/manage/user-notes.php