Re[2]: [PHP] variable-length arguments passed by reference... how?

From: Date: Thu, 29 Apr 2004 22:23:19 +0000
Subject: Re[2]: [PHP] variable-length arguments passed by reference... how?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-184979@lists.php.net to get a copy of this message
Hi, Friday, April 30, 2004, 3:51:19 AM, you wrote: JB> I know I'm probably paranoid, but eval() always bugs me. I think for JB> what you want to do you can use call_user_func_array() JB> $args = func_get_args(); JB> call_user_func_array('function_to_call', $args); JB> JB> http://www.php.net/manual/en/function.call-user-func-array.php The only time eval can be a problem is if you use it on client supplied data otherwise it is no worse than any other function. How does call_user_func_array() cope with pass by reference ? which is the op problem. -- regards, Tom

« previous php.general (#184979) next »