PHP Operators and Expressions What will be the output of the following PHP code ?$x = 30;$y = 20;$z = 10;echo $x + $y - $z / ($z - $y); 51 -5 41 -4 51 -5 41 -4 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions In order to find if a variable holds an actual number or a string containing characters that can be translated into a number you can use: is_numeric() is_number() is_num() if_numeric is_numeric() is_number() is_num() if_numeric ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$cars = array("Volvo", "BMW", "Toyota");echo "My car is a {$cars[0]}"; My car is a BMW My car is a Toyota My car is a Volvo Error My car is a BMW My car is a Toyota My car is a Volvo 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(); ERROR 0.01.0 No output 01 ERROR 0.01.0 No output 01 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$one = "one";$two = "one";print($one == $two); 1 true error false 1 true error false ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;$x = $i++;$y = ++$i;print $x;print $y; 02 12 01 21 02 12 01 21 ANSWER DOWNLOAD EXAMIANS APP