note 91422 added to control-structures.goto
| From: | jumping at theshark dot com | Date: | Tue, 09 Jun 2009 22:51:05 +0000 |
| Subject: | note 91422 added to control-structures.goto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156687@lists.php.net to get a copy of this message | ||
It should be noted that, in the following case:
foreach ($happydays as $episode) {
if ($episode.name === "Hollywood, Part Three of Three") {
goto fonzy;
}
echo "shark";
}
fonzy:
echo "but still 100 episodes to go (to)";
produces the following message (tested on php as compiled by Jon Hein)
"Warning: Shows that have 'jumped the shark' are typically deemed to have passed
their peak. ;)"
Should it be reported as a bug instead ?
X+
----
Server IP: 69.147.83.197
Probable Submitter: 78.110.192.44
----
Manual Page -- http://www.php.net/manual/en/control-structures.goto.php
Edit -- https://master.php.net/note/edit/91422
Del: integrated -- https://master.php.net/note/delete/91422/integrated
Del: useless -- https://master.php.net/note/delete/91422/useless
Del: bad code -- https://master.php.net/note/delete/91422/bad+code
Del: spam -- https://master.php.net/note/delete/91422/spam
Del: non-english -- https://master.php.net/note/delete/91422/non-english
Del: in docs -- https://master.php.net/note/delete/91422/in+docs
Del: other reasons-- https://master.php.net/note/delete/91422
Reject -- https://master.php.net/note/reject/91422
Search -- https://master.php.net/manage/user-notes.php