PrepAway - Latest Free Exam Questions & Answers

What is the output of the following code?

What is the output of the following code?
<code>
$a = 3;
switch ($a) {
case 1: echo ‘one’; break;
case 2: echo ‘two’; break;
default: echo ‘four’; break;
case 3: echo ‘three’; break;
}
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
one

B.
two

C.
three

D.
four

One Comment on “What is the output of the following code?


Leave a Reply to networkmanagers Cancel reply

Your email address will not be published. Required fields are marked *