PHP Control Structures (Loop) What will be the output of the following PHP code ?$a = 2;if ($a-- - --$a - $a)print "hello";elseprint "hi"; error hi no output hello error hi no output hello ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?for ($i = 0;$i = -1;$i = 1) {print $i;if ($i != 1)break;} 1 infinite loop -1 0 1 infinite loop -1 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$i = 0;while ($i++) {print $i;}print $i; infinite loop 1 0 01 infinite loop 1 0 01 ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x;for ($x = -3; $x < -5; ++$x) {print ++$x;} no output -3-4-5 -3-4 infinite loop no output -3-4-5 -3-4 infinite loop ANSWER DOWNLOAD EXAMIANS APP
PHP Control Structures (Loop) What will be the output of the following PHP code ?$x;if ($x == 0)print "hi";elseprint "how are u";print "hello" hihello how are uhello no output hi hihello how are uhello no output hi 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;elseprint "how are u"; 0 error how are u 1 0 error how are u 1 ANSWER DOWNLOAD EXAMIANS APP