PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while ($i = 10) {print "hi";}print "hello"; hihello hello error infinite loop hihello hello error infinite loop 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;} error no output 01234567891011121314…infinitely 1234567891011121314….infinitely error no output 01234567891011121314…infinitely 1234567891011121314….infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;if ($y-- == ++$y) {echo $y;} 3 no output 1 2 3 no output 1 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 0;function fun() {echo $GLOBALS['x'];$x++;}fun();fun();fun(); 000 Nothing Error 012 000 Nothing Error 012 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color = "red";$color = "green";echo "$color"; error green red green red error green red green red 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.5, -2 3.5, -3.5 2, -2 3, -3 2.5, -2 3.5, -3.5 2, -2 ANSWER DOWNLOAD EXAMIANS APP