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";} iiiii iiiiiiiiiiiiiiiiiiiiiiiii infinite loop no output iiiii iiiiiiiiiiiiiiiiiiiiiiiii infinite loop no output 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 ?$b = 1;switch(print $b) {case 2:print "hello";break;case 1:print "hi";break;default:print "hi1";} 1hi 1hello error 1hi1 1hi 1hello error 1hi1 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = array("hi", "hello", "bye");for (;count($a) < 5;) {if (count($a) == 3)print $a;} hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely no output (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely ArrayArrayArrayArrayArrayArray….infinitely hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely no output (“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)(“hiâ€,â€helloâ€,â€byeâ€)…infinitely ArrayArrayArrayArrayArrayArray….infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = "";while ($i) {print "hi";}while($i < 8)$i++;print "hello"; Hi is printed once, hello 7 times Hi is printed 10 times, hello 7 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times and then hi 2 times Hi is printed once, hello 7 times Hi is printed 10 times, hello 7 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times and then hi 2 times ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$b = 1;switch($b) {case 1.0:print "hi";break;case 1:print "hello";break;default:print "hi1";} hihello hello hihellohi1 hi hihello hello hihellohi1 hi ANSWER DOWNLOAD EXAMIANS APP