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);
?>
- 5 + 10 = 15 2 + 4 = 6 7 + 13 = 20
- 7 + 13 = 20 5 + 10 = 15 2 + 4 = 6
- 5 + 10 = 15 7 + 13 = 20 2 + 4 = 6
- 5 + 10 = 20 7 + 13 = 6 2 + 4 = 15
(d).5 + 10 = 20 7 + 13 = 6
need an explanation for this answer? contact us directly to get an explanation for this answer2 + 4 = 15