Re: [PHP4BETA] Fun. call via string

[email protected] (Alfred Perlstein)
Newsgroups php.version4
Message-ID <[email protected]>
* Dariusz Malinowski <[email protected]> [000522 02:13] wrote:
> hi there
>     is it possible to call function by passing its name (ie.
> CallUserFunction ("myFun", param1, param2)) ?

I'm pretty sure it's as simple as:

$myfunc = "myFun";
$myfunc(param1, param2);

-Alfred
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.