PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){echo "$x";}fun(); Nothing 5 Error 0 Nothing 5 Error 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?# echo "Hello world";echo "# Hello world"; Hello world# Hello world Hello world # Hello world Error Hello world# Hello world Hello world # Hello world Error 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 0.01.0 No output ERROR 01 0.01.0 No output ERROR ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$4four = 4;$3three = 3;$2two = 2;echo $4four + $3three / $2two - 1; 4.5 7 Error 3.5 4.5 7 Error 3.5 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;} 5 555555555…infinitely error 54321 5 555555555…infinitely error 54321 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$b = 1;$c = 4;$a = 5;$d = $b + $c == $a;print $d; 5 1 10 0 5 1 10 0 ANSWER DOWNLOAD EXAMIANS APP