<<< Previous question <<< Question ID#0804.md >>> Next question >>>
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