call_user_func() vs. "variable functions"
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

call_user_func() vs. "variable functions"

From: elektrophyte <elektrophyte@yahoo.com>
Date: Sun Jul 10 2005 - 22:11:53 CEST

I was looking at the PHP function "call_user_func()"
(http://us3.php.net/call_user_func). It appears that this will solve a
design problem in the app I'm working on. (I'm writing a class that
will allow a PHP programmer to call their own custom functions.)

However, in the comments a couple people mention "variable functions".
E.g., "You should avoid this function and use variable function calls
instead!"

What are "variable functions"?

Thanks,

E
Received on Mon Oct 17 21:05:01 2005