PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 2;if ($a-- - --$a - $a)print "hello";elseprint "hi"; error no output hello hi error no output hello hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($x = -1; $x < 10;--$x) {print $x;} infinite loop 1234567891011 12345678910 123456789101112 infinite loop 1234567891011 12345678910 123456789101112 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for(;;) {print "10";} infinite loop no output error 10 infinite loop no output error 10 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x;if ($x == 0)print "hi";elseprint "how are u";print "hello" how are uhello hihello hi no output how are uhello hihello hi no output ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; -5 ; $i++) {print"i";if ($i == 3)break;} 0 1 2 3 4 0 1 2 3 4 5 error 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 error 0 1 2 3 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";} hi hihi1 hi1 hihellohi1 hi hihi1 hi1 hihellohi1 ANSWER DOWNLOAD EXAMIANS APP