PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($x = -1; $x < 10;--$x) {print $x;} infinite loop 12345678910 123456789101112 1234567891011 infinite loop 12345678910 123456789101112 1234567891011 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x = 1;if ($x--)print "hi"$x--;elseprint "hello" hi error no output hello hi error no output hello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($x = 1; $x < 10; $x++)for ($y = 1; $y < 5; $y++)print "Hello"; Hello….45 times Hello….50 times Hello….36 times Hello….40 times Hello….45 times Hello….50 times Hello….36 times Hello….40 times 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 loopIn for loopIn for loopIn for loop...infinitely In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop...infinitely After for loop After for loopAfter for loopAfter for loop...infinitely In for loopIn for loopIn for loopIn for loop...infinitely In for loopAfter for loopIn for loopAfter for loopIn for loopAfter 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 ?$a = array("hi", "hello", "bye");foreach ($a as $value) {if (count($a) == 2)print $value;} infinite loop hihello no output hihellobye infinite loop hihello no output hihellobye 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 > 0; $i--)print $i;} infinite loop 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 no output infinite loop 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 no output ANSWER DOWNLOAD EXAMIANS APP