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';
?>
A. What is her age? n She is $num years old
B. What is her age? She is $num years old
C. What is her age? She is 10 years old
D. What is her age?n She is 10 years old
Answer: Option A

Join The Discussion