note 12088 deleted from function.eval by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 23:24:53 +0000 |
| Subject: | note 12088 deleted from function.eval by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22320@lists.php.net to get a copy of this message | ||
there's also the possibility with eval() to handle dynamic if's...
$a=0;
eval ('if ('.$condition.') { echo "yeah!"; }');
in my case, $condition was read out from db with the value '$a == 0'. the example echoes
yeah!, if the condition from the db is true...
-Henning