Basic PHP What will be the output of the following PHP code?$num = 10;echo 'What is her age? \n She is $num years old'; What is her age? n She is $num years old What is her age? She is 10 years old What is her age? She is $num years old What is her age?n She is 10 years old What is her age? n She is $num years old What is her age? She is 10 years old What is her age? She is $num years old What is her age?n She is 10 years old 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 mancI love manu I love arsenal I love arsenalI love manc Error I love arsenalI love mancI love manu I love arsenal I love arsenalI love manc ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of following variables can be assigned a value to it?1. $3hello2. $_hello3. $this4. $This 2 and 4 2, 3 and 4 All of the mentioned Only 2 2 and 4 2, 3 and 4 All of the mentioned Only 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the below symbols is a newline character? /n /r \r \n /n /r \r \n ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$user = array("Ashley", "Bale", "Shrek", "Blank");for ($x=0; $x < count($user); $x++){if ($user[$x] == "Shrek")continue;printf ($user[$x]);} AshleyBale AshleyBaleBlank ShrekBlank Shrek AshleyBale AshleyBaleBlank ShrekBlank Shrek ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following is not valid PHP code? $aVaR $_10 $10_somethings ${“MyVar”} &$something $aVaR $_10 $10_somethings ${“MyVar”} &$something ANSWER DOWNLOAD EXAMIANS APP