How do you use the call_user_func function with call-time pass-by-reference deprecation?

For example:

function fun(&$arg) {
  $arg++;
}
$var = 0;
call_user_func("fun", $var);
echo $var; //echoes 0 instead of 1

Is their anyway to do this:
call_user_func("fun", &$var);

Thanks for any help with this!
Andrew Nagy

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to