PHP > Beginner

What will the output of the following PHP code, trying to global variable in a function?

$divideBy = 2;
function average($argument1, $argument2)
{
 $avg = ($argument1 + $argument2)/$divideBy;
 return $avg;
}

$average_func = "average";

$a = 2;
$b = 1;
echo($average_func($a, $b)); 
Answers :
Time Left
Question Number : /20
Please do not press back or refresh button during this test.

Login

Register

Next Question