PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = "";while($i) {print "hi";}print "hello"; hello infinite loop hihello error hello infinite loop hihello error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "2";switch ($a) {case 1:print "hi";case 2:print "hello";break;default:print "hi1";} hihi1 hihellohi1 hello hi1 hihi1 hihellohi1 hello hi1 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 97;switch(?$a) {case "a":print "hi";break;case 97:print "hello";break;default:print "hi1";} hello hihello hihellohi1 hi hello hihello hihellohi1 hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 10;$b = 11;if ($a < ++$a || $b < ++$b)print "hello";elseprint "hi"; hi error hello no output hi error hello no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x = 0; $x < count($user); $x++) {if ($user[$x] == "Shrek")continue;printf ($user[$x]);} AshleyBaleBlank AshleyBale No output AshleyBaleShrek AshleyBaleBlank AshleyBale No output AshleyBaleShrek ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "1";$a = 1;$b = 1;switch($a) {case $a * $b:print "hi";break;case $a / $b:print "hello";break;default:print "hi1";} hi1 hihellohi1 hi hihello hi1 hihellohi1 hi hihello ANSWER DOWNLOAD EXAMIANS APP