"> What will be the output of the following PHP code ?<?php$First

Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    $First = "Mania";
    $Second = "Interview";
    echo "$First"+"$Second";
    ?>
    1. Mania
    2. 0
    3. Error
    4. Interview
    5. None of these
Correct Option: B

In an echo statement you can not use plus sign to join two strings.



Your comments will be displayed only after manual approval.