PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1 + ++5;echo $var1; no output 7 6 error no output 7 6 error ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?function fun($x,$y) {$x = 4;$y = 3;$z = $x + $y / $y + $x;echo "$z";}fun(3, 4); 9 7 0 Error 9 7 0 Error 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() if_numeric is_number() is_num() is_numeric() if_numeric is_number() is_num() ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;$j = 0;if ($i && ($j = $i + 10)) {echo "true";}echo $j; true10 0 true0 10 true10 0 true0 10 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("NEW_GOOD_NAME_CONSTANT", "I have a value");define("OLD_BAD_NAME_CONSTANT", NEW_GOOD_NAME_CONSTANT);echo NEW_GOOD_NAME_CONSTANT;echo OLD_BAD_NAME_CONSTANT; ERROR I have a value I have a valueNEW_GOO_NAME_CONSTANTS I have a valueI have a value ERROR I have a value I have a valueNEW_GOO_NAME_CONSTANTS I have a valueI have a value ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = red;$color2 = green;echo "$color1"."$color2"; red red green error green red red green error green ANSWER DOWNLOAD EXAMIANS APP