PHP Operators and Expressions What will be the output of the following PHP code ?function fun() {static $x = 0;echo $x;$x++;}fun();fun();fun(); 111 123 012 Error 111 123 012 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while ((--$i > ++$i) - 1) {print $i;} 00000000000000000000….infinitely no output -1-1-1-1-1-1-1-1-1-1…infinitely error 00000000000000000000….infinitely no output -1-1-1-1-1-1-1-1-1-1…infinitely error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;if (--$y == 2 || $y xor --$y) {echo $y;} no output 2 0 1 no output 2 0 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 4;$y = 3$z = 1;$z = $z + $x + $y;echo "$z"; $z 15 8 1 $z 15 8 1 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 Volvo 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 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions The result of below two statements will be:Round(2.5)Round(-2.5) 3, -3 2, -2 2.5, -2 3.5, -3.5 3, -3 2, -2 2.5, -2 3.5, -3.5 ANSWER DOWNLOAD EXAMIANS APP