using a variable to a function call
| From: | Matt Williams | Date: | Thu, 07 Mar 2002 14:25:34 +0000 |
| Subject: | using a variable to a function call | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87629@lists.php.net to get a copy of this message | ||
Hi all
I get a variable that is set be a select box on a page.
I want to use this variable to call a function within a class that is based
on it's name.
so if $var = "me"
I want to call $class->me_function();
or if
$var = "you"
call
$class->you_function();
How can I use the variable as part of the function name to call.
TIA
matt