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

Home » PHP » PHP If Else/Else If Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n = 0;
    if ($n == 1)
    if ($n >= 0)
    print "True";
    else
    print "False";
    ?>
    1. 0
    2. 1
    3. True
    4. False
    5. Nothing
Correct Option: E

The nested for loop is not entered if outer condition is false.



Your comments will be displayed only after manual approval.