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

Home » PHP » PHP If Else/Else If Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    $num1 = 25;
    $num2 = 27;
    if ($num1 > $num2 && 1||1)
    print "Manjesh" ;
    else
    print "Ojha";
    ?>
    1. Ojha
    2. 25
    3. Manjesh
    4. 27
    5. None of these
Correct Option: C

Expression evaluates to true.



Your comments will be displayed only after manual approval.