Q:

What will be the output of the following PHP code?

belongs to collection: FUNCTIONS IN PHP MCQ

0

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"
?>

  1. Returned value from the function : $return_value
  2. Error
  3. Returned value from the function : 30
  4. Returned value from the function :

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).Returned value from the function : 30

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< What will be the output of the following PHP code?...