What will be the output of the following PHP code? [code] <?php function addFunction($num1, $num2) { $sum = $num1 + $num2; return $sum;

Alvin Le

Member
What will be the output of the following PHP code?
Code:
<?php
function addFunction($num1, $num2)
{
    $sum = $num1 + $num2;
    return $sum;
}
$return_value = addFunction(10, 20);
echo "Returned value from the function : $return_value"
?>
A. Returned value from the function : $return_value
B. Error
C. Returned value from the function : 30
D. Returned value from the function :
 

Tìm kiếm

Back
Top