Re: Passing an indefinite number of parameters by reference
| From: | Chris Jenkinson | Date: | Mon, 08 May 2006 10:46:38 +0000 |
| Subject: | Re: Passing an indefinite number of parameters by reference | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235708@lists.php.net to get a copy of this message | ||
Tom Rogers wrote:
Here is a cutdown version of a class loader I use, It works for php4 and php5 and with references. It should be easy to modify.[...] Sorry, this does not work with references as func_get_args() copies the arguments passed, rather than keeping them as references. This means that the $variable1, $variable2, etc. variables are only references to the copy made with func_get_args(), rather than to the variables passed to the first function. Chris -- Chris Jenkinson chris@starglade.org "Mistrust all in whom the impulse to punish is powerful." -- Friedrich Nietzsche, Thus Spoke Zarathustra