"> 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 "Program ")
    print "Executed..." ;
    else
    print "Not Executed...";
    ?>
    1. Program
    2. Executed...
    3. Not Executed...
    4. Program Executed...
    5. Program Not Executed...
Correct Option: D

Expression evaluates to true as print returns 1.



Your comments will be displayed only after manual approval.