Posted by Mary Pegg on 04/21/06 13:04
F Laupretre wrote:
<snip>
Thanks for the feedback.
> and use func_get_args() to retrieve a variable number of arguments. Your
Yes, I thought about this but felt that if you are going to do this:
> $args=get_func_args();
> $args=(count($args)>2) ? array_slice($args,2) : array();
> return call_user_func_array($callback,$args);
you might as well just pass an array in anyway. Not sure now.
Navigation:
[Reply to this message]
|