PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;if (**$y == 4) {echo $y;} no output error at line2 2 4 no output error at line2 2 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 10;$j = 0;if ($i || ($j = $i + 10)) {echo "true";}echo $j; 20 true20 true0 0 20 true20 true0 0 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;} no output 1 3 2 no output 1 3 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = "test";$y = "this";$z = "also";$x .= $y .= $z ;echo $x;echo $y; testthisalsothisalso testthisthisalso testthis error at line 4 testthisalsothisalso testthisthisalso testthis error at line 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;function fun() {$GLOBALS['y'] = $GLOBALS['x'] + $GLOBALS['y'];}fun();echo $y; 15 Error 5 10 15 Error 5 10 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";} error result is 1 no output result is true error result is 1 no output result is true ANSWER DOWNLOAD EXAMIANS APP