variable function call (Re: [PHP] unset a function?)
| From: | Bas Jobsen | Date: | Thu, 31 Jan 2002 10:55:12 +0000 |
| Subject: | variable function call (Re: [PHP] unset a function?) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82903@lists.php.net to get a copy of this message | ||
Hello,
> Thanks all. I will rename the second function.
Now if have:
if($wat=="naam")$temp=make_naam($this);
else if($wat=="anderenaam")$temp=make_anderenaam($this);
//etc..
But i would prefer something like
$temp=make_$wat($this);
How can i do this?
Tnx,
Bas