PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 3;print $var = ++$var; 1 2 0 3 1 2 0 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 5;while (--$i > 0) {$i++;print $i;print "hello";} no output 5hello5hello5hello5hello5hello…..infinite 4hello4hello4hello4hello4hello…..infinite error no output 5hello5hello5hello5hello5hello…..infinite 4hello4hello4hello4hello4hello…..infinite error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;$x = $i++;$y = ++$i;print $x;print $y; 01 21 12 02 01 21 12 02 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo $red; True Nothing 0 Error True Nothing 0 Error 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; 10 Error 15 5 10 Error 15 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color = red;echo "$color"; $color Error red red $color Error red red ANSWER DOWNLOAD EXAMIANS APP