note 51376 deleted from function.eval by peehaa
| From: | peehaa@php.net | Date: | Mon, 09 Dec 2013 11:56:54 +0000 |
| Subject: | note 51376 deleted from function.eval by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197855@lists.php.net to get a copy of this message | ||
Note Submitter: tom
----
Eval can't be used as a callback function so if you want to use the eval function name
dynamically use this simple work around:
<?php
if ($function_name == "eval")
{
eval($stuff);
}
else
{
$function_name($stuff);
}
?>