Q. What is the value of $a and $b after the function call?
Code:<?php
function doSomething( &$arg )
{
$return = $arg;
$arg += 1;
return $return;
}
$a = 3;
$b = doSomething( $a );
?>
β
Correct Answer: (B)
a is 4 and b is 3