note 96760 deleted from function.call-user-func-array by danbrown
| From: | danbrown@php.net | Date: | Mon, 15 Mar 2010 16:19:42 +0000 |
| Subject: | note 96760 deleted from function.call-user-func-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167039@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
@Damin, et al
Pass by reference is actually much easier - simply prepend the arguments variable with
'&', e.g:
$vars = array('a', 'b', 'c');
$result = call_user_func('some_function', &$vars);
It's doc'd here:
http://bugs.php.net/bug.php?id=17309&edit=1
Cheers