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
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