When using call_user_func_array() I want to pass a parameter by reference. How would I do this. For example
call_user_func_array()
function toBeCalled( &$paramet
This works by double referencing,the original variable is modified when the $parameter variable is modified.
$a = 2; $a = toBeCalled($a); echo $a //50 function toBeCalled( &$par_ref ) { $parameter = &$par_ref; $parameter = $parameter*25; }