note 91845 added to control-structures.goto
| From: | maria at osu1 dot php dot net | Date: | Sun, 28 Jun 2009 22:30:29 +0000 |
| Subject: | note 91845 added to control-structures.goto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157649@lists.php.net to get a copy of this message | ||
will this work? If not, why? It should work.
-------------------
$a = "1";
GOTO $a;
PRINT "ABC";
1:
PRINT "123";
------------------
results should be "123" on screen
And why is it not possible to GOTO an other file if it is INCLUDEd?
----
Server IP: 69.147.83.197
Probable Submitter: 85.167.136.130
----
Manual Page -- http://www.php.net/manual/en/control-structures.goto.php
Edit -- https://master.php.net/note/edit/91845
Del: integrated -- https://master.php.net/note/delete/91845/integrated
Del: useless -- https://master.php.net/note/delete/91845/useless
Del: bad code -- https://master.php.net/note/delete/91845/bad+code
Del: spam -- https://master.php.net/note/delete/91845/spam
Del: non-english -- https://master.php.net/note/delete/91845/non-english
Del: in docs -- https://master.php.net/note/delete/91845/in+docs
Del: other reasons-- https://master.php.net/note/delete/91845
Reject -- https://master.php.net/note/reject/91845
Search -- https://master.php.net/manage/user-notes.php