logo

Crowdly

What will be the output of the following PHP code? <?php $a = "1"; switch ($...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will be the output of the following PHP code?

<?php

$a = "1";

switch ($a)

{

case 1:

    print "hi";

case 2:

    print "hello";

default:

    print "hi1";

}

?>

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on moodle31.upei.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!