note 97922 deleted from control-structures.goto by danbrown
| From: | danbrown@php.net | Date: | Mon, 17 May 2010 13:52:57 +0000 |
| Subject: | note 97922 deleted from control-structures.goto by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169329@lists.php.net to get a copy of this message | ||
Note Submitter: rybadour at gmail dot com
----
Fortunately, you cannot do this:
<?php
$goto = 'goto one;';
eval($goto);
echo 'top';
one:
echo 'one';
?>
It gives the error:
"Fatal error: 'goto' to undefined label 'one'..."