note 13563 added to functions.arguments.php
| From: | rwillmann at nocomment dot sk | Date: | Thu, 21 Jun 2001 19:05:20 +0000 |
| Subject: | note 13563 added to functions.arguments.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14535@lists.php.net to get a copy of this message | ||
There is no way how to deal with calling by reference when variable lengths argument list are
passed.
<br>Only solutions is to use construction like this:<br>
function foo($args) {<br>
...
}
foo(array(&$first, &$second));
Above example pass by value a list of references to other variables :-)
It is courios, becouse when you call a function with arguments passed via &$parameter syntax,
func_get_args returns array of copies :-(
rwi
http://www.php.net/manual/en/functions.arguments.php