What is the output of the following code?

Posted by: Pdfprep Category: 200-710 Tags: , ,

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

Leave a Reply

Your email address will not be published.