PHP Control Structures (Loop) What will be the output of the following PHP code ?if (!print "hi")if (print "hello")print "hi"; hihellohi no output hi hihi hihellohi no output hi hihi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "1";$b = "0";if ((int)$a && $b)print"hi";elseprint "hello"; no output hi error hello no output hi error hello 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 and then hi 2 times Hi is printed 10 times, hello 7 times Hi is printed once, 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 10 times, hello 7 times Hi is printed once, 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 ?$a = 1;if (echo $a)print "True";elseprint "False"; error no output false true error no output false true ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 1;if ($x == 2)print "hi";else if($x = 2)print $x;elseprint "how are u"; error how are u hi 2 error how are u hi 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x;for ($x = -3; $x < -5; ++$x) {print ++$x;} -3-4 no output -3-4-5 infinite loop -3-4 no output -3-4-5 infinite loop ANSWER DOWNLOAD EXAMIANS APP