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

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

While condition always gives 1.



Your comments will be displayed only after manual approval.