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

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

While condition always gives 1.



Your comments will be displayed only after manual approval.