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

Home » PHP » PHP While Loops » Question
  1. What will be the output of the following PHP code ?
    <?php
    $s = "";
    while ($s = 20)
    {
    print "Interveiw";
    }
    print "Mania";
    ?>
    1. Nothing
    2. 20
    3. Interview.....infinite time
    4. Mania.....infinite time
    5. None of these
Correct Option: C

While condition always gives 1.



Your comments will be displayed only after manual approval.