Q48
What will be the output of the following PHP code ?
A.
Case 1 was executed
B.
Case 2 was executed
C.
Default was executed
D.
Case 4 was executed
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
The switch statement is executed with $x = 9.