"> 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 = "Interview ";
    $Second = "Mania";
    echo "$First$Second";
    ?>
    1. Interview
    2. Interview Mania
    3. Mania
    4. Error
    5. None of these
Correct Option: B

Even though both the variables are inside the double-quotes, the value of the variable is substituted and then printed to the screen.



Your comments will be displayed only after manual approval.