PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 1;if (print $a)print "True";elseprint "False"; no output error false true no output error false true ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?do {print "hi";}while(0);print "hello"; hello hihello infinite loop error hello hihello infinite loop 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++;} 1357…19 13579…21 123…….20 Infinite 1357…19 13579…21 123…….20 Infinite ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = "2";switch ($a) {case 1:print "hi";case 2:print "hello";break;default:print "hi1";} hi1 hihi1 hihellohi1 hello hi1 hihi1 hihellohi1 hello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 1;if ($x = $x& 0)print $x;elsebreak; 1 error 0 no output 1 error 0 no output 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"; hi hellolength 5 error hi hellolength 5 error ANSWER DOWNLOAD EXAMIANS APP