Q:

What will be the output of the following PHP code ?

0

What will be the output of the following PHP code ?

<?php
$a = 10;
$b = 4;
$c = fun(10,4);
function fun($a,$b)
{
    $b = 3;
    return $a - $b + $b - $a; 
}
echo $a;
echo $b;
echo $c;
?>

  1. 1432
  2. 1405
  3. 1040
  4. 1323

All Answers

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

 (c).1040

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