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 error result is true result is 1 no output error result is true result is 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?print("this"."was"."a"."bad"."idea"); this was a bad idea nothing thiswasabadidea error this was a bad idea nothing thiswasabadidea error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1; 0 2 3 1 0 2 3 1 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; 5 Error 10 15 5 Error 10 15 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 4;$y = 3;function fun($x = 3, $y = 4) {$z = $x+$y/$y+$x;echo "$z";}echo $x;echo $y;echo $z;fun($x, $y); 439 943 349 43 439 943 349 43 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = "";while ($i = 10) {print "hi";}print "hello"; hihello error hello infinite loop hihello error hello infinite loop ANSWER DOWNLOAD EXAMIANS APP