PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;$z = "$x + $y";echo "$z"; 10 + 5 $z $x + $y 15 10 + 5 $z $x + $y 15 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 10;$y = 4;$z = 3;echo $x % $y % $z; 2 0 Error 1 2 0 Error 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color = red;echo "$color"; Error red red $color Error red red $color ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?class Constants{define('MIN_VALUE', '0.0');define('MAX_VALUE', '1.0');public static function getMinValue() {return self::MIN_VALUE;}public static function getMaxValue() {return self::MAX_VALUE;}}echo Constants::getMinValue();echo Constants::getMaxValue(); 01 No output 0.01.0 ERROR 01 No output 0.01.0 ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 3;print $var = ++$var; 2 1 3 0 2 1 3 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = "";while ($i = 10) {print "hi";}print "hello"; infinite loop hihello error hello infinite loop hihello error hello ANSWER DOWNLOAD EXAMIANS APP