PHP Operators and Expressions What will be the output of the following PHP code ?$cars = array("Volvo", "BMW", "Toyota");echo "My car is a {$cars[0]}"; My car is a Toyota My car is a Volvo Error My car is a BMW My car is a Toyota My car is a Volvo Error My car is a BMW ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$color1 = red;$color2 = green;echo "$color1"."$color2"; error red green red green error red green red green ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = "test";$y = "this";$z = "also";$x .= $y .= $z ;echo $x;echo $y; error at line 4 testthisalsothisalso testthis testthisthisalso error at line 4 testthisalsothisalso testthis testthisthisalso 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 echo Hello world Hello world echo “Hello world” Error echo Hello world Hello world ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;{echo "$x";} 0 5 Error Nothing 0 5 Error Nothing ANSWER DOWNLOAD EXAMIANS APP
PHP Operators and Expressions What will be the output of the following PHP code ?$x = 5;$y = 10;$z = "$x + $y";echo "$z"; 10 + 5 15 $z $x + $y 10 + 5 15 $z $x + $y ANSWER DOWNLOAD EXAMIANS APP