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 = 3.3;$y = 2;echo $x % $y; 1 0 2 Error 1 0 2 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 5;while (--$i > 0) {$i++;print $i;print "hello";} no output 4hello4hello4hello4hello4hello…..infinite error 5hello5hello5hello5hello5hello…..infinite no output 4hello4hello4hello4hello4hello…..infinite error 5hello5hello5hello5hello5hello…..infinite ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 1;if ($i++ && ($i == 1))printf("Yesn$i");elseprintf("Non$i"); No 2 Yes 1 No 1 Yes 2 No 2 Yes 1 No 1 Yes 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "red";$color2 = "red";echo "$color1" + "$color2"; 1 red green redgreen 0 1 red green redgreen 0 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}; testvalue test testtest error, constant value cannot be changed testvalue test testtest error, constant value cannot be changed ANSWER DOWNLOAD EXAMIANS APP