PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($x = -1; $x < 10;--$x) {print $x;} 123456789101112 infinite loop 1234567891011 12345678910 123456789101112 infinite loop 1234567891011 12345678910 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0;$i = -1;$i = 1) {print $i;if ($i != 1)break;} 0 1 infinite loop -1 0 1 infinite loop -1 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while(?++$i || --$i) {print $i;} 01234567891011121314...infinitely 0 1234567891011121314...infinitely 1 01234567891011121314...infinitely 0 1234567891011121314...infinitely 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?switch($b) {case 2:print "hello";break;case b:print "hi";break;} hi hello error no output hi hello error no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?if (print "hi" - 1)print "hello" hihello error hi no output hihello error hi no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 10;$y = 5;$z = 3;if ($x / $y / $z)print "hi";elseprint "hello"; error no output hi hello error no output hi hello ANSWER DOWNLOAD EXAMIANS APP