PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while ($i < 3) {$i++;}print $i; 3 1 2 0 3 1 2 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 2;if ($a-- - --$a - $a)print "hello";elseprint "hi"; hi no output error hello hi no output 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 ($a--)print "True";if ($a++)print "False"; no output error true false no output error true false ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;for ($i) {print $i;} infinite loop no output 0 error infinite loop no output 0 error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for (1; $i == 1; $i = 2)print "In for loop ";print "After loopn"; After for loop In for loop In for loopAfter for loop Infinite loop After for loop In for loop In for loopAfter for loop Infinite loop ANSWER DOWNLOAD EXAMIANS APP