PHP Operators and Expressions What will be the output of the following PHP code ?$cars = array("Volvo", "BMW", "Toyota");print $cars[2]; Toyota Error BMW Volvo Toyota Error BMW Volvo ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$i = 0;while ((--$i > ++$i) - 1) {print $i;} -1-1-1-1-1-1-1-1-1-1…infinitely 00000000000000000000….infinitely error no output -1-1-1-1-1-1-1-1-1-1…infinitely 00000000000000000000….infinitely error no output ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as. 46.2999999 none of above 46 46.3 46.2999999 none of above 46 46.3 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$var1 = 1 + ++5;echo $var1; error 6 no output 7 error 6 no output 7 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?define("__LINE__", "PHP is a scripting language");echo __LINE__; __LINE__ ERROR PHP is a scripting language 2 __LINE__ ERROR PHP is a scripting language 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 1;$y = 2;if (++$x == $y++) {echo "true ", $y, $x;} true 33 no output true 22 true 23 true 33 no output true 22 true 23 ANSWER DOWNLOAD EXAMIANS APP