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); -4 -5 51 41 -4 -5 51 41 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 4;$y = 3;$z = 1;echo "$x = $x + $y + $z"; 4 = 4 + 3 + 1 8 8 = 4 + 3 +1 Error 4 = 4 + 3 + 1 8 8 = 4 + 3 +1 Error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = '12345';print "qwe{$a}rty"; error qwe{$a}rty qwe12345rty no output error qwe{$a}rty qwe12345rty no output 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]}"; Error My car is a Volvo My car is a BMW My car is a Toyota Error My car is a Volvo My car is a BMW My car is a Toyota 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_num() is_number() is_numeric() if_numeric is_num() is_number() is_numeric() if_numeric ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 12;--$a;echo $a++; 12 11 error 10 12 11 error 10 ANSWER DOWNLOAD EXAMIANS APP