-
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"
?>
-
- Returned value : 120
- Returned value : 50
- Returned value : 70
- Error
- None of these
Correct Option: A
Functions returns value 120.