Q:

What will be the output of the following PHP code?

belongs to collection: BASICS OF PHP MCQ

0

What will be the output of the following PHP code?

<?php
    $num = 10;
    echo 'What is her age? \n She is $num years old';
    ?>

  1. What is her age? \\n She is $num years old
  2. What is her age? She is $num years old
  3. What is her age? She is 10 years old
  4. What is her age? She is 10 years old

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).What is her age? \n She is $num years old

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

BASICS OF PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of the conditional statements is/are support... >>
<< Which of the below symbols is a newline character?...