ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

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

Answer & Solution
Correct Answer: Option C
Functions returns value 30.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.