note 6625 deleted from eval by jmoore
| From: | jmoore@php.net | Date: | Tue, 15 Aug 2000 00:11:52 +0000 |
| Subject: | note 6625 deleted from eval by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1860@lists.php.net to get a copy of this message | ||
does eval do more than substitue the values of $strings?
I need to evaluate an IF statement, and other more complex statements:
e.g.
<PRE>
if $complete_code = 'if ($value == $today) echo "HELLO WORLD";';
eval("$new_string="$complete_code");
<PRE>
the value of $new_string = if (1 == 1) echo "HELLo WORLD";
and not "HELLO WORLD" or ""
can anybody help me on this one. very much appreciated!