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;} hihellobye no output infinite loop hihello hihellobye no output infinite loop hihello 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 ?if (print "0")print "hi";elseprint "how are u"; 0how are u 0hi how are u hi 0how are u 0hi how are u hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;do {$i++;}while ($i < 3);print $i; 1 0 3 2 1 0 3 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for (1; $i == 1; $i = 2)print "In for loop ";print "After loopn"; Infinite loop In for loop After for loop In for loopAfter for loop Infinite loop In for loop After for loop In for loopAfter for loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 2;if ($a-- - --$a - $a)print "hello";elseprint "hi"; error hi hello no output error hi hello no output ANSWER DOWNLOAD EXAMIANS APP