PHP Operators and Expressions What will be the output of the following PHP code ?$color = "red";$color = "green";echo "$color"; red green red error green red green red error green 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 5hello5hello5hello5hello5hello…..infinite error 4hello4hello4hello4hello4hello…..infinite no output 5hello5hello5hello5hello5hello…..infinite error 4hello4hello4hello4hello4hello…..infinite ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while (++$i && --$i) {print $i;} 1234567891011121314….infinitely error 01234567891011121314…infinitely no output 1234567891011121314….infinitely error 01234567891011121314…infinitely no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 4;$y = -3;$z = 11;echo 4 + $y * $z / $x; -3.25 -4.25 4.25 3.25 -3.25 -4.25 4.25 3.25 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 1400 410 104 4100 1400 410 104 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ? Error Missing semicolon error Nothing Hello World Error Missing semicolon error Nothing Hello World ANSWER DOWNLOAD EXAMIANS APP