AW: [PHP] eval() to string???
| From: | Thomas Weber | Date: | Wed, 24 Jan 2001 15:14:43 +0000 |
| Subject: | AW: [PHP] eval() to string??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36420@lists.php.net to get a copy of this message | ||
try
eval("\$php_code;");
-----Ursprüngliche Nachricht-----
Von: [ rswfire ] [mailto:rswfire@hotmail.com]
Gesendet: Mittwoch, 24. Januar 2001 15:36
An: php-general@lists.php.net
Betreff: [PHP] eval() to string???
I want to evaluate some PHP code to a string. How can I do this?
$php_code = "echo 'hello';"
I would like to evaluate the code to "hello" in another string...