PHP Operators and Expressions What will be the output of the following PHP code ?$4four = 4;$3three = 3;$2two = 2;echo $4four + $3three / $2two - 1; Error 4.5 3.5 7 Error 4.5 3.5 7 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: if_numeric is_number() is_numeric() is_num() if_numeric is_number() is_numeric() is_num() ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$a = 10;$b = 4;$c = fun(10,4);function fun($a,$b) {$b = 3;return $a - $b + $b - $a;}echo $a;echo $b;echo $c; 410 104 1400 4100 410 104 1400 4100 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$y = 2;if (**$y == 4) {echo $y;} 2 error at line2 4 no output 2 error at line2 4 no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?echo "echo "Hello World""; echo “Hello world” Error Hello world echo Hello world echo “Hello world” Error Hello world echo Hello world ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1; 0 2 3 1 0 2 3 1 ANSWER DOWNLOAD EXAMIANS APP