Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; r $var Error a r $var Error a ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$team = "arsenal";switch ($team) {case "manu":echo "I love man u";case "arsenal":echo "I love arsenal";case "manc":echo "I love manc"; } I love arsenal I love arsenalI love manc I love arsenalI love mancI love manu Error I love arsenal I love arsenalI love manc I love arsenalI love mancI love manu Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP String values must be enclosed in ...... both A and B double quotes none of above single quotes both A and B double quotes none of above single quotes ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following php code?$num = 1;$num1 = 2;print $num . "+". $num1; 1.+.2 Error 3 1+2 1.+.2 Error 3 1+2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$a = 5;$b = 5;echo ($a === $b); 1 False 5 === 5 Error 1 False 5 === 5 Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which statement will output $x on the screen? echo “/$x”; echo “$$x”; echo “$x;”; echo “\$x”; echo “/$x”; echo “$$x”; echo “$x;”; echo “\$x”; ANSWER DOWNLOAD EXAMIANS APP