PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1 + ++5;echo $var1; error 6 no output 7 error 6 no output 7 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";} result is true no output error result is 1 result is true no output error result is 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("VAR_NAME","test");${VAR_NAME} = "value";echo VAR_NAME;echo ${VAR_NAME}; test testtest error, constant value cannot be changed testvalue test testtest error, constant value cannot be changed testvalue ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 10;$b = 4;$c = fun(10,4);function fun($a,$b) {$b = 3;return $a - $b + $b - $a;}echo $a;echo $b;echo $c; 410 1400 104 4100 410 1400 104 4100 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;{echo "$x";} Error Nothing 0 5 Error Nothing 0 5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){echo "$x";}fun(); Error 0 Nothing 5 Error 0 Nothing 5 ANSWER DOWNLOAD EXAMIANS APP