PHP > Random > Beginner Next/Skip this question

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 :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question