"> What will be the output of the following PHP code ?<?phpif

Home » PHP » PHP If Else/Else If Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    if (0.25)
    print "Ajit" ;
    else
    print "Gupta";
    ?>
    1. 0.25
    2. Error
    3. Ajit
    4. Gupta
    5. None of these
Correct Option: C

Expression evaluates to true.



Your comments will be displayed only after manual approval.