Q. What is the value of $a and $b after the function call?
Code:
<?php
function doSomething(&$argument)
{
$Result = $argument;
$argument += 1;
return $Result;
}
$n = 5;
$m = doSomething($n);
echo "n = " . $n . " and m = " . $m;
?>
β
Correct Answer: (B)
n = 6 and m = 5