Passing an indefinite number of parameters by reference
| From: | Chris Jenkinson | Date: | Sun, 07 May 2006 18:20:11 +0000 |
| Subject: | Passing an indefinite number of parameters by reference | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235690@lists.php.net to get a copy of this message | ||
Hi,
Currently I have a function which accepts a limited number of parameters:
call_function($function_name, &$var_1, &$var_2);
I wish to modify the function to accept an indefinite number of parameters, which may or may not be references.
The function call_function() then calls the function specified in $function_name, with the variables passed as parameters to that function.
Is this possible? Thanks for any help which can be offered.
Chris
--
Chris Jenkinson
chris@starglade.org
"Mistrust all in whom the impulse to punish is powerful."
-- Friedrich Nietzsche, Thus Spoke Zarathustra