Re: variable variable function calling
| From: | Andrei Zmievski | Date: | Fri, 20 Apr 2001 15:15:49 +0000 |
| Subject: | Re: variable variable function calling | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-564@lists.php.net to get a copy of this message | ||
On Thu, 19 Apr 2001, Monte Ohrt wrote:
> Someone clue me in before I go crazy :-) What is the syntax for calling
> a variable function name with arguments? This doesn't work:
>
> $funcname = "get_db_stuff";
>
> ${$funcname}($resource_name,$template_source,$template_timestamp);
>
> <b>Fatal error</b>: Call to undefined function: () ...
$funcname($resource_name,$template_source,$template_timestamp)
-Andrei
* Non-volatile, random-access, analog memory store... a book. *