note 13563 deleted from functions.arguments by cmb
| From: | cmb@php.net | Date: | Sun, 10 Nov 2019 13:18:59 +0000 |
| Subject: | note 13563 deleted from functions.arguments by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213025@lists.php.net to get a copy of this message | ||
Note Submitter: rwillmann at nocomment dot sk
----
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