PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "a";if ($a)print "all";elseprint "some"; no output all some error no output all some error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i++; $i == 1; $i = 2)print "In for loop ";print "After loop"; In for loop After for loop Infinite loop In for loopAfter for loop In for loop After for loop Infinite loop In for loopAfter for loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($x = 1; $x < 10; $x++)for ($y = 1; $y < 5; $y++)print "Hello"; Hello….36 times Hello….50 times Hello….45 times Hello….40 times Hello….36 times Hello….50 times Hello….45 times Hello….40 times 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;} infinite loop -1 0 1 infinite loop -1 0 1 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
PHP Control Structures (Loop) What will be the output of the following PHP code?$x;if ($x)print "hi";elseprint "how are u"; no output how are u error hi no output how are u error hi ANSWER DOWNLOAD EXAMIANS APP