var_dump(call_user_func($func, 2, 4)); /* As of PHP 5.3.0 */ // int(8)
?>
Notes
Note:
Referenced variables in param_arr
are passed to the
function by a reference, others are passed by a value. In other words, it
does not depend on the function signature whether the parameter is passed
by a value or by a reference.