Re: Call function and get return...
| From: | Martin Thoma | Date: | Wed, 16 Aug 2000 08:33:26 +0000 |
| Subject: | Re: Call function and get return... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11948@lists.php.net to get a copy of this message | ||
> make the eval do:
>
> function doIt($func)
> {
> $returnvalue=0;
> eval("$returnvalue = $func;");
> return $returnvalue;
> }
>
Hi and thanx again for your help. But this will give $returnvalue the
function-name:
DoIt("f2()");
will make $returnvalue = "f2()"; :-(