PHP Operators and Expressions What will be the output of the following PHP code ?$x=0; function fun() {echo $GLOBALS['x'];$GLOBALS['x']++;}fun();fun();fun(); 012 000 123 Error 012 000 123 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 5;while (--$i > 0) {$i++;print $i;print "hello";} no output 4hello4hello4hello4hello4hello…..infinite 5hello5hello5hello5hello5hello…..infinite error no output 4hello4hello4hello4hello4hello…..infinite 5hello5hello5hello5hello5hello…..infinite error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 1;$y = 2;if (++$x == $y++) {echo "true ", $y, $x;} true 33 true 22 no output true 23 true 33 true 22 no output true 23 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;if ($y-- == ++$y) {echo $y;} 2 no output 3 1 2 no output 3 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo "This"."was"."a"."bad"."idea"; Thiswasabadidea This, was, a, bad, idea This was a bad idea Error Thiswasabadidea This, was, a, bad, idea This was a bad idea Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$4four = 4;$3three = 3;$2two = 2;echo $4four + $3three / $2two - 1; 3.5 4.5 Error 7 3.5 4.5 Error 7 ANSWER DOWNLOAD EXAMIANS APP