note 91422 deleted from control-structures.goto by danbrown
| From: | danbrown@php.net | Date: | Tue, 09 Jun 2009 23:00:48 +0000 |
| Subject: | note 91422 deleted from control-structures.goto by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156688@lists.php.net to get a copy of this message | ||
Note Submitter: jumping at theshark dot com
----
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+