PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){echo "$x";}fun(); 5 Error 0 Nothing 5 Error 0 Nothing ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "red";$color2 = "green";echo "$color1" . "$color2"; green red green redgreen red green red green redgreen red 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; 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 ?$cars = array("Volvo", "BMW", "Toyota");echo "My car is a {$cars[0]}"; My car is a BMW My car is a Toyota Error My car is a Volvo My car is a BMW My car is a Toyota Error My car is a Volvo ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "red";$color2 = "1";$color3 = "grey";echo "$color1" + "$color2" . "$color3"; 0 red1grey grey 1grey 0 red1grey grey 1grey 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}; testtest test error, constant value cannot be changed testvalue testtest test error, constant value cannot be changed testvalue ANSWER DOWNLOAD EXAMIANS APP