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

Discussion :: PHP - CS

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

    <?php

    $x = 0;

    if ($x == 1)

    if ($x >= 0)

    print "true";

    else

    print "false";

    ?>

  2. A.

     true

    B.

     false

    C.

     error

    D.

     no output

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The nested for loop is not entered if outer condition is false.


Be The First To Comment