PHP Operators and Expressions What will be the output of the following PHP code ?$i = 5;while (--$i > 0 && ++$i) {print $i;} error 5 54321 555555555…infinitely error 5 54321 555555555…infinitely ANSWER DOWNLOAD EXAMIANS APP
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; 5 Error 15 10 5 Error 15 10 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("VAR_NAME","test");${VAR_NAME} = "value";echo VAR_NAME;echo ${VAR_NAME}; error, constant value cannot be changed testvalue test testtest error, constant value cannot be changed testvalue test testtest ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = "$winner";$b = "/$looser";echo $a,$b; / $winner/$looser /$looser $looser / $winner/$looser /$looser $looser ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("NEW_GOOD_NAME_CONSTANT", "I have a value");define("OLD_BAD_NAME_CONSTANT", NEW_GOOD_NAME_CONSTANT);echo NEW_GOOD_NAME_CONSTANT;echo OLD_BAD_NAME_CONSTANT; I have a value ERROR I have a valueI have a value I have a valueNEW_GOO_NAME_CONSTANTS I have a value ERROR I have a valueI have a value I have a valueNEW_GOO_NAME_CONSTANTS ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1; 3 2 1 0 3 2 1 0 ANSWER DOWNLOAD EXAMIANS APP