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

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n = 25;
    {
    echo "$n";
    }
    ?>
    1. Error
    2. 25
    3. Nothing
    4. $n
    5. None of these
Correct Option: B

The variable n stores the value 25 and therefore the value 25 is printed on the screen.



Your comments will be displayed only after manual approval.