Re: Why use call_user_func()?
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 19:12:39 +0000 |
| Subject: | Re: Why use call_user_func()? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4109@lists.php.net to get a copy of this message | ||
In article <F5968E69F84FD311A25400A0C9FB29BA0456D2@JABSRV01>,
marten@jerbro.se (=?iso-8859-1?Q?=22Gustafson=2C_M=E5rten=22?=) wrote:
> Could someone explain the thought behind call_user_func(). When could it be
> useful?
I think it is mostly a byproduct of having stuff like usort() where PHP
internals can call back to user-defined functions...
Probably be easier to use:
$userfunc(...);
if you needed to use a variable function name, but somebody might like
call_user_func better for religious reasons...
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)