PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;function fun() {$y = $GLOBALS['x'] + $GLOBALS['y'];}fun();echo $y; 15 5 Error 10 15 5 Error 10 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;} 54321 555555555…infinitely error 5 54321 555555555…infinitely error 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while ($i = 10) {print "hi";}print "hello"; infinite loop hihello error hello infinite loop hihello error hello ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while ((--$i > ++$i) - 1) {print $i;} 00000000000000000000….infinitely error -1-1-1-1-1-1-1-1-1-1…infinitely no output 00000000000000000000….infinitely error -1-1-1-1-1-1-1-1-1-1…infinitely no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?print_r "Hello world" Hello World Nothing Missing semicolon error Error Hello World Nothing Missing semicolon error Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 12;--$a;echo $a++; 10 11 12 error 10 11 12 error ANSWER DOWNLOAD EXAMIANS APP