eval
| From: | Decapode Azur | Date: | Fri, 01 Aug 2003 06:48:22 +0000 |
| Subject: | eval | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157885@lists.php.net to get a copy of this message | ||
Is it possible to put PHP code in eval ?
Or just vars ?
<?php
$string = 'The result of <?php $a=2; $b=3; $c=$a+$b; echo "$a + $b is $c";
?>';
eval ($string);
?>