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

Discussion :: PHP - CS

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

    <?php

    print_r "Hello world"

    ?>

  2. A.

     Error

    B.

     Hello World

    C.

     Nothing

    D.

     Missing semicolon error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The statement should be print_r(‘Hello World’) to print Hello world. Also if there is only one line then there is no requirement of a semicolon, but it is better to use it.


Be The First To Comment