Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
function sum($x, $y)
{
    $z = $x + $y;
    return $z;
}
echo "5 + 10 = " . sum(7,13) . "<br>";
echo "7 + 13 = " . sum(2,4) . "<br>";
echo "2 + 4 = " . sum(5,10);
?>

  1. 5 + 10 = 15 2 + 4 = 6 7 + 13 = 20
  2. 7 + 13 = 20 5 + 10 = 15 2 + 4 = 6
  3. 5 + 10 = 15 7 + 13 = 20 2 + 4 = 6
  4. 5 + 10 = 20 7 + 13 = 6 2 + 4 = 15

All Answers

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

 (d).5 + 10 = 20 7 + 13 = 6
2 + 4 = 15

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now