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 No 1 Yes 2 Yes 1 No 2 No 1 Yes 2 Yes 1 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"; red green 0 1 redgreen red green 0 1 redgreen 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 5hello5hello5hello5hello5hello…..infinite error no output 4hello4hello4hello4hello4hello…..infinite 5hello5hello5hello5hello5hello…..infinite error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$hello = "Hello World";$bye = "Bye";echo $hello;"$bye"; Error Bye Hello worldBye Hello World Error Bye Hello worldBye Hello World 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; 4100 104 410 1400 4100 104 410 1400 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 12;--$a;echo $a++; 11 12 10 error 11 12 10 error ANSWER DOWNLOAD EXAMIANS APP