PHP Operators and Expressions What will be the output of the following PHP code ?$color = red;echo "$color"; $color Error red red $color Error red red 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 ?$color1 = "red";$color2 = "1";echo "$color1" + "$color2"; red 1 0 1 red1 red 1 0 1 red1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?var $one = 1;var $two = 2;echo $one / $two * $one / $two * $two; 0 Error 1 0.5 0 Error 1 0.5 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 5;$b = -7;$c =0;$d = ++$a && ++$b || ++$c;print $d;print $a;print $a; 05 15 16 06 05 15 16 06 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 3;print ++$var++; error 3 5 4 error 3 5 4 ANSWER DOWNLOAD EXAMIANS APP