?
What will be the output of the following PHP code?
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 & Solution
Correct Answer:
Option
A
When a string is enclosed within single quotes both variables and escape sequences will not be interpreted when the string is parsed.
Join the Discussion
Login to post a comment or share your explanation.
Login