PHP Operators and Expressions What will be the output of the following PHP code ?define("__LINE__", "PHP is a scripting language");echo __LINE__; ERROR 2 PHP is a scripting language __LINE__ ERROR 2 PHP is a scripting language __LINE__ ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo "This"."was"."a"."bad"."idea"; This was a bad idea This, was, a, bad, idea Error Thiswasabadidea This was a bad idea This, was, a, bad, idea Error Thiswasabadidea ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 0;$var1 = ($var1 + 5)++;echo $var1; 6 7 error 5 6 7 error 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;function fun() {$GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];}fun();echo $y; 5 10 Error 15 5 10 Error 15 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color = red;echo "$color" . red ; red error nothing red red red error nothing red red ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;if (--$y <> ($y != $y++)) {echo $y;} 0 no output 1 2 0 no output 1 2 ANSWER DOWNLOAD EXAMIANS APP