Home » PHP » PHP If Else/Else If Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    $p = 50;
    $q = 60;
    if ($p > $q && 1||1)
    print "Executed...." ;
    else
    print "Not Executed....";
    ?>
    1. Not Executed....
    2. True
    3. Executed....
    4. False
    5. None of these
Correct Option: C

Expression evaluates to true.



Your comments will be displayed only after manual approval.