"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code ?

    <?php

    $i = 0;

    while ($i = 10)

    {

    print "hi";

    }

    print "hello";

    ?>

  2. A.

     hello

    B.

     infinite loop

    C.

     hihello

    D.

     error

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    While condition always gives 1.


Be The First To Comment