PHP Operators and Expressions What will be the output of the following PHP code ?$cars = array("Volvo", "BMW", "Toyota");print $cars[2]; Toyota Error Volvo BMW Toyota Error Volvo BMW 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 ?$x = 3.3;$y = 2;echo $x % $y; 2 0 Error 1 2 0 Error 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;function fun(){echo "$x";}fun(); 5 Error Nothing 0 5 Error Nothing 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x =4;$y = 3;function fun($x, $y) {$z = $x + $y / $y + $x;echo "$z";}echo $x;echo $y;echo $z;fun(3, 4); 347 439 437 349 347 439 437 349 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 + $j) > ($j - $k)); 1 error no output 0 1 error no output 0 ANSWER DOWNLOAD EXAMIANS APP