Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 448 Bytes

0804.md

File metadata and controls

23 lines (18 loc) · 448 Bytes

What is the output of the following code?

function func($x, $x = 2, $x = 3)   {
    return $x;
}
echo func(3);
  • A) Fatal error: Redefinition of parameter $x
  • B) 3 will be printed
  • C) 2 will be printed
  • D) None of the above
Answer

Answer: A