Q:

What will be the output of the following PHP code ?

4

What will be the output of the following PHP code ?

<?php
$x = 4;
$y = 3;
function fun($x = 3, $y = 4)
{
    $z = $x+$y/$y+$x;
    echo "$z";
} 
echo $x;
echo $y;
echo $z; 
fun($x, $y);
?>

  1. 400
  2. 405
  3. 401
  4. 439

All Answers

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

 (d).439

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