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?n She is 10 years old What is her age? 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?n She is 10 years old What is her age? She is $num years old ANSWER DOWNLOAD EXAMIANS APP
Basic PHP String values must be enclosed in ...... none of above both A and B single quotes double quotes none of above both A and B single quotes double quotes 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]);} ShrekBlank Shrek AshleyBale AshleyBaleBlank ShrekBlank Shrek AshleyBale AshleyBaleBlank 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
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 code?$foo = 'Bob';$bar = &$foo;$bar = "My name is $bar";echo $bar;echo $foo; Error My name is BobMy name is Bob My name is Bob Bob My name is BobBob Error My name is BobMy name is Bob My name is Bob Bob My name is BobBob ANSWER DOWNLOAD EXAMIANS APP