PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 3;print $var = ++$var; 3 2 1 0 3 2 1 0 ANSWER DOWNLOAD EXAMIANS APP
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(); 123 012 Error 111 123 012 Error 111 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 error no output 01234567891011121314…infinitely 1234567891011121314….infinitely error no output 01234567891011121314…infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;$z = "$x + $y";echo "$z"; $x + $y 15 $z 10 + 5 $x + $y 15 $z 10 + 5 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}; error, constant value cannot be changed test testvalue testtest error, constant value cannot be changed test testvalue testtest ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1 + ++5;echo $var1; 6 no output error 7 6 no output error 7 ANSWER DOWNLOAD EXAMIANS APP