I have:
function increment(&$var)
{
$var++;
}
$a = 0;
call_user_func('increment', $a);
echo $a."\n";
Why does this return:
Warning: Parameter 1 to increment() expected to be a reference, value given in
and $a is still 0. Why is this?
Any references to official documentation would help.