Vidyalelo
PHP · Q48

Functions

Programming · PHP · question 48

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
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The switch statement is executed with $x = 9.