"> 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 (print "Ninth" - 9)
    print "Tenth"
    ?>
    1. Ninth
    2. Tenth
    3. -9Ninth
    4. -9Tenth
    5. None of these
Correct Option: D

print returns true and when 9 is subtracted it is syntax error.



Your comments will be displayed only after manual approval.