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 ?const $b = 1;switch($b) {case 1:print "hi";break;case 1:print "hello";break;default:print "hi1";} hello hi hihello error hello hi hihello error 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….40 times Hello….36 times Hello….50 times Hello….45 times Hello….40 times Hello….36 times Hello….50 times Hello….45 times ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($count = 0; $count < 3;$count++); {print "hi";continue;print "hello";} hellohellohello hihellohihellohihello hihihi hi hellohellohello hihellohihellohihello hihihi hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 1;if ($x = $x& 0)print $x;elseprint "how are u"; how are u error 0 1 how are u error 0 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?if (-100)print "hi";elseprint "how are u"; how are u error no output hi how are u error no output hi ANSWER DOWNLOAD EXAMIANS APP