How can I pass reference to call_user_func? How can I pass reference to call_user_func? php php

How can I pass reference to call_user_func?


I found my answer on the PHP manual :

Note:

Note that the parameters for call_user_func() are not passed by reference.

They also give a trick to do the job :

$x = 42;call_user_func_array('myTest', array(&$x));