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

Home » PHP » PHP If Else/Else If Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    $n1 = 17;
    $n2 = 19;
    if ($n1 > $n2 + $n2 != 3)
    print "Interview" ;
    else
    print "Mania";
    ?>
    1. Mania
    2. Interview
    3. 17
    4. 19
    5. None of these
Correct Option: B

Expression evaluates to true.



Your comments will be displayed only after manual approval.