"> What will be the output of the following PHP code ?<?php$t

Home » PHP » PHP While Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    $t = 0;
    while($t < 5)
    {
    $t++;
    print "Ajit ";
    }
    ?>
    1. Ajit
    2. Ajit Ajit
    3. Ajit Ajit Ajit
    4. Ajit Ajit Ajit Ajit
    5. Ajit Ajit Ajit Ajit Ajit
Correct Option: E

The while loop ends only when condition will false.



Your comments will be displayed only after manual approval.