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 error hellolength 5 hi error hellolength 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"; no output hello error hi no output hello error hi 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;} 24 1234 1 134 24 1234 1 134 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0; $i < 5; $i++) {for(; $i < 5; $i++)print"i";} infinite loop no output iiiii iiiiiiiiiiiiiiiiiiiiiiiii infinite loop no output iiiii iiiiiiiiiiiiiiiiiiiiiiiii ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?switch($b) {case 2:print "hello";break;case b:print "hi";break;} no output hi error hello no output hi error hello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user) - 1; $x++) {if ($user[$x++] == "Shrek")continue;printf ($user[$x]);} BaleBlank AshleyBaleBlank Bale AshleyShrek BaleBlank AshleyBaleBlank Bale AshleyShrek ANSWER DOWNLOAD EXAMIANS APP