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

Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    print "Hello Interview Mania!<br>";
    print "I'm about to learn PHP!";
    ?>
    1. I'm about to learn PHP!
    2. Error
    3. Hello Interview Mania!
    4. Nothing
    5. Hello Interview Mania!
      I'm about to learn PHP!
Correct Option: E

Most of the properties of echo and print are same. Strings can contain HTML markup.



Your comments will be displayed only after manual approval.