PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = array("hi", "hello", "bye");foreach ($a as $value) {if (count($a) == 2)print $value;} hihello infinite loop no output hihellobye hihello infinite loop no output hihellobye 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"; some no output all error some no output all error ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($count = 1; $count != 20;$count++) {print $count;$count++;} 123…….20 Infinite 1357…19 13579…21 123…….20 Infinite 1357…19 13579…21 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"; hi no output error how are u hi no output error how are u ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for(++$i; ++$i; ++$i) {print $i;if ($i == 4)break;} 134 1234 1 24 134 1234 1 24 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 hi how are u error no output hi how are u error ANSWER DOWNLOAD EXAMIANS APP