Re: Problem with variable functions
| From: | Björn Schotte | Date: | Wed, 12 Jul 2000 18:16:43 +0000 |
| Subject: | Re: Problem with variable functions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6207@lists.php.net to get a copy of this message | ||
Hi,
* Charles Killian wrote:
> if that doesn't work, maybe this will:
> $function = "classname->sett"
> call_user_func($function);
At http://www.zugeschaut-und-mitgebaut.de/php/,
I found call_user_method(). Seems that this will
be 50% of the solution -- as my application reads
$function out of a database, I have to regexp if
a method call should be made or it's a normal function.
Thanks so far, Björn.