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

Home » PHP » PHP Variables » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n;
    echo "$n";
    ?>
    1. 0
    2. True
    3. 1
    4. False
    5. Undefined variable: n
Correct Option: E

Since the variable n is not initialised it is not storing any value, therefore nothing will be printed on the screen.



Your comments will be displayed only after manual approval.