Question
What will be the output of the following PHP code?
< ?php
$num = 10;
echo 'What is her age? \n She is $num years old';
?>
< ?php
$num = 10;
echo 'What is her age? \n She is $num years old';
?>
Answer: Option A
Was this answer helpful ?
When a string is enclosed within single quotes both variables and escape sequences will not be interpreted when the string is parsed.
Was this answer helpful ?
More Questions on This Topic :
Question 1. PHP files have a default file extension of. ....
Question 3. Who is the father of PHP? ....
Submit Solution