Home » PHP » PHP If Else/Else If Statement » Question
  1. What will be the output of the following PHP code ?
    <?php
    $t = 11;
    if ($t = $t&0)
    print $t;
    else
    break;
    ?>
    1. True
    2. False
    3. 11
    4. 0
    5. Error
Correct Option: E

break is not defined for a if else ladder.



Your comments will be displayed only after manual approval.