"> What will be the output of the following PHP code ?<?phpecho

Home » PHP » PHP Syntax » Question
  1. What will be the output of the following PHP code ?
    <?php
    echo "echo "Hello Interview Mania"";
    ?>
    1. Error
    2. Hello Interview Mania
    3. echo "Hello Interview Mania"
    4. echo Hello Interview Mania
    5. None of these
Correct Option: A

It would have printed echo “Hello world” if the statement was echo “echo \”Hello Interview Mania\””;.



Your comments will be displayed only after manual approval.