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

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $hello = "Hello";
    $interveiw = "Interveiw";
    $mania = "Mania";
    echo "$interveiw";$hello; $mania;
    ?>
    1. Hello
    2. Interveiw
    3. Mania
    4. All of above
    5. None of these
Correct Option: B

Since there is a semi-colon in between $hello and $interveiw , the line ends at $hello. However $interveiw would have printed if a echo was present before “$interveiw ”.



Your comments will be displayed only after manual approval.