PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = array("hi", "hello", "bye");foreach ($a as $value) {if (count($a) == 2)print $value;} hihello infinite loop no output hihellobye hihello infinite loop no output hihellobye 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"; infinite loop hihello hello error infinite loop hihello hello error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?while() {print "hi";} hi error infinite loop no output hi error infinite loop no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i % ++$i; $i++) {print"i";} 0 error no output infinite loop 0 error no output infinite loop 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 once, hello 7 times and then hi 2 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 Hi is printed once, hello 7 times and then hi 2 times Hi is printed 10 times, hello 7 times Hi is printed 8 times, 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 ?if (!print "hi")if (print "hello")print "hi"; hi hihellohi no output hihi hi hihellohi no output hihi ANSWER DOWNLOAD EXAMIANS APP