note 92476 rejected from function.eval by danbrown
| From: | danbrown@php.net | Date: | Sun, 26 Jul 2009 15:41:13 +0000 |
| Subject: | note 92476 rejected from function.eval by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158741@lists.php.net to get a copy of this message | ||
Note Submitter: grimm dot otzberg at freenet dot de
----
When I enter
<?
$evalcode = "$number = $key";
$key = 17;
eval($evalcode);
echo $number;
?>
the result isn't 17. Is there any way to handle this problem? I've got the evalcode in an
array and the variables are defined later.