Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; r a Error $var r a Error $var ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$a = 5;$b = 5;echo ($a === $b); 1 5 === 5 Error False 1 5 === 5 Error False ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What does PHP stand for?1. Personal Home Page2. Hypertext Preprocessor3. Pretext Hypertext Processor4. Preprocessor Home Page Both 1 and 3 Both 1 and 2 Only 2 Both 2 and 4 Both 1 and 3 Both 1 and 2 Only 2 Both 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 1 Error 5 12 1 Error 5 12 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"; } Error I love arsenalI love manc I love arsenal I love arsenalI love mancI love manu Error I love arsenalI love manc I love arsenal I love arsenalI love mancI love manu ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following PHP statements will output Hello World on the screen?1. echo (“Hello World”);2. print (“Hello World”);3. printf (“Hello World”);4. sprintf (“Hello World”); All of the mentioned 1 and 2 1, 2 and 3 1, 2 and 4 All of the mentioned 1 and 2 1, 2 and 3 1, 2 and 4 ANSWER DOWNLOAD EXAMIANS APP