PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 10;$y = 20;if ($x > $y && 1||1)print "hi";elseprint "how are u"; how are u hi error no output how are u hi error no output 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 ($j = $i;$j > $i; $i--)print $i;} infinite loop no output 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 infinite loop no output 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 1 2 3 4 5 0 1 2 3 4 5 0 1 2 3 4 5 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"; hi 5 error hellolength hi 5 error hellolength ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i == 2; ++$i == $i; ++$i)print "In for loop ";print "After loop"; In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop...infinitely In for loopIn for loopIn for loopIn for loop...infinitely After for loop After for loopAfter for loopAfter for loop...infinitely In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop...infinitely In for loopIn for loopIn for loopIn for loop...infinitely After for loop After for loopAfter for loopAfter for loop...infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$b = 1;switch(print $b) {case 2:print "hello";break;case 1:print "hi";break;default:print "hi1";} 1hi 1hello 1hi1 error 1hi 1hello 1hi1 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; 19 12345678910….19 12345678910….1920 20 19 12345678910….19 12345678910….1920 20 ANSWER DOWNLOAD EXAMIANS APP