MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following PHP code ? <?php $a = "2"; switch ($a) { case 1: print "hi"; case 2: print "hello"; break; default: print "hi1"; } ?> |
| A. | Hihellohi1 |
| B. | Hello |
| C. | Hihi1 |
| D. | Hi1 |
| Answer» C. Hihi1 | |