PHP Operators and Expressions What will be the output of the following PHP code ?static $x = 0;function fun() {echo $x;$x++;}fun();fun();fun(); Nothing 123 Error 012 Nothing 123 Error 012 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = "red";$color2 = "1";$color3 = "grey";echo "$color1" + "$color2" . "$color3"; red1grey 0 1grey grey red1grey 0 1grey grey 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_num() is_number() is_numeric() if_numeric is_num() is_number() 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; true0 10 0 true10 true0 10 0 true10 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions PHP will automatically convert strings to numbers when it needs to. TRUE FALSE TRUE FALSE ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;$j = 1;$k = 2;print !(($i + $k) < ($j - $k)); 0 true false 1 0 true false 1 ANSWER DOWNLOAD EXAMIANS APP