PHP Control Structures (Loop) What will be the output of the following PHP code ?$b = 1;switch(print $b) {case 2:print "hello";break;case 1:print "hi";break;default:print "hi1";} 1hello 1hi error 1hi1 1hello 1hi error 1hi1 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";} no output infinite loop iiiii iiiiiiiiiiiiiiiiiiiiiiiii no output infinite loop iiiii iiiiiiiiiiiiiiiiiiiiiiiii ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = "";while($i) {print "hi";}print "hello"; hello hihello infinite loop error hello hihello infinite loop error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for(;;) {print "10";} infinite loop error 10 no output infinite loop error 10 no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 10;$y = 20;if ($x > $y && 1||1)print "hi";elseprint "how are u"; error hi no output how are u error hi no output how are u ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 1;if ($x--)print "hi"$x--;elseprint "hello" error hello hi no output error hello hi no output ANSWER DOWNLOAD EXAMIANS APP