-
What will be the output of the following PHP code?
$n = 18;
echo 'What is her age? \n She is $n years old.';
?>
-
- Error
- What is her age? \n She is 18 years old
- What is her age? \n She is $n years old.
- 18
- None of these
Correct Option: C
When a string is enclosed within single quotes both variables and escape sequences will not be interpreted when the string is parsed.