PHP Operators and Expressions What will be the output of the following PHP code ?$a = 'a';print $a * 2; 192 error 2 0 192 error 2 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$auth = 1;$status = 1;if ($result = (($auth == 1) && ($status != 0))) {print "result is $result";} no output result is 1 result is true error no output result is 1 result is true error 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(); 111 Error 123 012 111 Error 123 012 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;} error -1-1-1-1-1-1-1-1-1-1…infinitely no output 00000000000000000000….infinitely error -1-1-1-1-1-1-1-1-1-1…infinitely no output 00000000000000000000….infinitely ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("GREETING", "PHP is a scripting language");echo $GREETING; $GREETING GREETING PHP is a scripting language no output $GREETING GREETING PHP is a scripting language no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = '4';print + + $a; no output error 5 0 no output error 5 0 ANSWER DOWNLOAD EXAMIANS APP