What will be the output of the following PHP code? [code] <?php $b = 1; switch($b) { case 1.0: print "hi"; break; case 1: print "hel

Đinh Yến

New member
What will be the output of the following PHP code?
Code:
<?php
$b = 1;
switch($b)
{
case 1.0:
    print "hi";
    break;
case 1:
    print "hello";
    break;
default:
    print "hi1";
}
?>
A. hihellohi1
B. hi
C. hihello
D. hello
 

Tìm kiếm

Back
Top