PHP Operators and Expressions What will be the output of the following PHP code ?define("GREETING", "PHP is a scripting language");echo $GREETING; PHP is a scripting language GREETING no output $GREETING PHP is a scripting language GREETING no output $GREETING ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while (++$i && --$i) {print $i;} 1234567891011121314….infinitely no output 01234567891011121314…infinitely error 1234567891011121314….infinitely no output 01234567891011121314…infinitely error 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}; test error, constant value cannot be changed testtest testvalue test error, constant value cannot be changed testtest testvalue ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 0;function fun() {echo $GLOBALS['x'];$x++;}fun();fun();fun(); 000 Nothing 012 Error 000 Nothing 012 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$cars = array("Volvo", "BMW", "Toyota");print $cars[2]; Volvo BMW Error Toyota Volvo BMW Error Toyota ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color = "red";$color = "green";echo "$color"; red green red error green red green red error green ANSWER DOWNLOAD EXAMIANS APP