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 ?$x = 1;if ($x--)print "hi"$x--;elseprint "hello" error hello hi no output error hello hi no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "1";switch ($a) {case 1:print "hi";case 2:print "hello";default:print "hi1";} hi1 hi hihellohi1 hihi1 hi1 hi hihellohi1 hihi1 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;} 1 infinite loop 0 -1 1 infinite loop 0 -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;} 0 1234567891011121314...infinitely 1 01234567891011121314...infinitely 0 1234567891011121314...infinitely 1 01234567891011121314...infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($count = 1; $count != 20;$count++) {print $count;$count++;} 1357…19 123…….20 Infinite 13579…21 1357…19 123…….20 Infinite 13579…21 ANSWER DOWNLOAD EXAMIANS APP