PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 2;if ($a-- - --$a - $a)print "hello";elseprint "hi"; hello no output hi error hello no output hi error 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"; hellolength error 5 hi hellolength error 5 hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "hello";if (strlen($a))print strlen($a);elseprint "hi"; hellolength error 5 hi hellolength error 5 hi ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "1";$b = "0";if ((int)$a && $b)print"hi";elseprint "hello"; hello hi no output error hello hi no output error 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";} hihellohi1 hihi1 hi1 hi hihellohi1 hihi1 hi1 hi ANSWER DOWNLOAD EXAMIANS APP