Home » PHP » PHP For Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    $k = 1;
    for ($k++; $k == 1; $k = 2)
    print "In for loop execute...";
    print "After loop executed...\n";

    ?>
    1. Error
    2. In for loop execute...
    3. After loop executed...
    4. Nothing
    5. None of these
Correct Option: C

After loop executed...



Your comments will be displayed only after manual approval.