note 27712 deleted from function.eval by victor
| From: | victor@php.net | Date: | Sat, 12 Jun 2004 22:36:39 +0000 |
| Subject: | note 27712 deleted from function.eval by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70994@lists.php.net to get a copy of this message | ||
Note Submitter: terry@boxitllc.com
----
$replacementVar = "\$htmlSnippet->productSnippet()"
$command = "$value = $replacementVar; return 1;"
eval( $command )
echo $value;
if $htmlSnippet->productSnippet() returns a string containing javascript, php will will try to
evaluate the javascript code instead of just assigning the string to $value.