What is the output of the following code?

What is the output of the following code?

$a= 3;

switch ($a) {

}

case 1: echo ‘one’; break;

case 2: echo ‘two’; break;

default: echo ‘four’; break;

case 3: echo ‘three’; break;
A . one
B . two
C . three
D . four

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments