PHP Operators and Expressions What will be the output of the following PHP code ?print_r "Hello world" Nothing Error Missing semicolon error Hello World Nothing Error Missing semicolon error Hello World ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 10;$b = 10;if ($a = 5)$b--;print $a;print $b--; 58 108 109 59 58 108 109 59 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;} 01234567891011121314…infinitely error no output 1234567891011121314….infinitely 01234567891011121314…infinitely error no output 1234567891011121314….infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){$x = 10;echo "$x";}fun();echo "$x"; 510 Error 0 105 510 Error 0 105 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; 15 Error 5 10 15 Error 5 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 Error My car is a Volvo My car is a Toyota My car is a BMW Error My car is a Volvo My car is a Toyota ANSWER DOWNLOAD EXAMIANS APP