PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($count = 1; $count < 20; $count++);print $count; 12345678910….19 19 20 12345678910….1920 12345678910….19 19 20 12345678910….1920 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "1";switch ($a) {case 1:print "hi";case 2:print "hello";default:print "hi1";} hi1 hihi1 hi hihellohi1 hi1 hihi1 hi hihellohi1 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) - 1; $x++) {if ($user[$x++] == "Shrek")continue;printf ($user[$x]);} Bale BaleBlank AshleyShrek AshleyBaleBlank Bale BaleBlank AshleyShrek AshleyBaleBlank ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 10;if (1)print "all";elseprint "some"elseprint "none"; error some none all error some none all ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?if (print "hi" - 1)print "hello" no output hi hihello error no output hi hihello error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i < 5; $i++) {for(; $i < 5; $i++)print"i";} iiiiiiiiiiiiiiiiiiiiiiiii no output infinite loop iiiii iiiiiiiiiiiiiiiiiiiiiiiii no output infinite loop iiiii ANSWER DOWNLOAD EXAMIANS APP