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

Discussion :: PHP - CS

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

    <?php

    $x;

    if ($x == 0)

    print "hi" ;

    else

    print "how are u";

    print "hello"

    ?>

  2. A.

     how are uhello

    B.

     hihello

    C.

     hi

    D.

     no output

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    else condition without brackets performs the following statements only.


Be The First To Comment