PHP Control Structures (Loop) What will be the output of the following PHP code ?switch($b) {case 2:print "hello";break;case 1:print "hi";break;} hi hello error no output hi hello error 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]);} AshleyBaleShrek AshleyBale No output AshleyBaleBlank AshleyBaleShrek AshleyBale No output AshleyBaleBlank ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while ($i < 3) {$i++;}print $i; 0 1 2 3 0 1 2 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; 0; $i++) {print"i";} infinite loop 0 no output error infinite loop 0 no output error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code?$x;if ($x)print "hi";elseprint "how are u"; no output how are u error hi no output how are u error hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?do {print "hi";}while(0);print "hello"; hihello error hello infinite loop hihello error hello infinite loop ANSWER DOWNLOAD EXAMIANS APP