Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code ?
    <?php
    function SumFun($number1, $number2)
    {
    $s = $number1 + $number2;
    return $s;
    }
    $return_val = SumFun(15, 45);
    echo "Returned value : " .$return_val
    ?>
    1. Returned value : 60
    2. Returned value : 15
    3. Returned value : 45
    4. Error
    5. None of these
Correct Option: A

Returned value : 60



Your comments will be displayed only after manual approval.