PHP Control Structures (Loop) What will be the output of the following PHP code ?$x;for ($x = -3; $x < -5; ++$x) {print ++$x;} no output -3-4 -3-4-5 infinite loop no output -3-4 -3-4-5 infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "hello";if ($a.length)print $a.length;elseprint "hi"; 5 hi hellolength error 5 hi hellolength 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….50 times Hello….45 times Hello….36 times Hello….40 times Hello….50 times Hello….45 times Hello….36 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";} hihellohihellohihello hihihi hi hellohellohello hihellohihellohihello hihihi hi hellohellohello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = "";while ($i) {print "hi";}while($i < 8)$i++;print "hello"; Hi is printed 10 times, hello 7 times Hi is printed once, hello 7 times and then hi 2 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times Hi is printed 10 times, hello 7 times Hi is printed once, hello 7 times and then hi 2 times Hi is printed 8 times, hello 7 times and then hi 2 times Hi is printed once, hello 7 times ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;for ($i) {print $i;} no output error 0 infinite loop no output error 0 infinite loop ANSWER DOWNLOAD EXAMIANS APP