PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i % ++$i; $i++) {print"i";} no output error infinite loop 0 no output error infinite loop 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "a";if ($a)print "all";elseprint "some"; no output error some all no output error some all ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 0;if ($x == 1)if ($x >= 0)print "true";elseprint "false"; true no output false error true no output false error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$b = 1;switch(print $b) {case 2:print "hello";break;case 1:print "hi";break;default:print "hi1";} error 1hello 1hi 1hi1 error 1hello 1hi 1hi1 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x;for ($x = -3; $x < -5; ++$x) {print ++$x;} infinite loop -3-4-5 no output -3-4 infinite loop -3-4-5 no output -3-4 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "1";$a = 1;$b = 1;switch($a) {case $a * $b:print "hi";break;case $a / $b:print "hello";break;default:print "hi1";} hi hihello hihellohi1 hi1 hi hihello hihellohi1 hi1 ANSWER DOWNLOAD EXAMIANS APP