1.

What will be the output of the following PHP code?
<?php
function addation($n1, $n2)
{
$add = $n1 + $n2;
return $add;
}
$return_val = addation(50, 70);
echo "Returned value : $return_val"
?>

A. Returned value : 120
B. Returned value : 50
C. Returned value : 70
D. Error
E. None of these
Answer» B. Returned value : 50


Discussion

No Comment Found

Related MCQs