Re: [PHP4BETA] Fun. call via string

From: Date: Mon, 22 May 2000 08:47:33 +0000
Subject: Re: [PHP4BETA] Fun. call via string
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-15358@lists.php.net to get a copy of this message
Dariusz Malinowski wrote: > > hi there > is it possible to call function by passing its name (ie. > CallUserFunction ("myFun", param1, param2)) ? Sure: function CallUserFunction($func, $param1, $param2) { $func($param1, $param2); } Ciao, Andreas

« previous php.version4 (#15358) next »