Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 438 Bytes

0032.md

File metadata and controls

26 lines (22 loc) · 438 Bytes

Consider the following PHP script:

function b($a = 4) {
    $a = $a / 2;
    return $a;
}

$a = 10;
b($a);
echo $a;

What will be the output?

  • A) 10
  • B) 5
  • C) 2
  • D) The script will throw an error message.
Answer

Answer: A