call_user_func and $this followup
| From: | Jon Parise | Date: | Tue, 25 Jul 2000 20:56:40 +0000 |
| Subject: | call_user_func and $this followup | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8135@lists.php.net to get a copy of this message | ||
I managed to find a way to get my desired result using eval (although
it looks sloppy, and I'd prefer to use call_user_func like it is
intended).
eval('$this->' . $functionName . '($param1, $param2);');
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member