"> What will be the output of the following PHP code ?<?phpwhile(){

Home » PHP » PHP While Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    while()
    {
    print "While loop...";
    }
    ?>
    1. Nothing
    2. Error
    3. While loop...
    4. 0
    5. None of these
Correct Option: B

The while loop cannot be defined without a condition.



Your comments will be displayed only after manual approval.