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

Discussion :: PHP - CS

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

    <?php

    define("__LINE__", "PHP is a scripting language");

    echo __LINE__;

    ?>

  2. A.

     PHP is a scripting language

    B.

     __LINE__

    C.

     2

    D.

     ERROR

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    __LINE__ is a magical constant that gives the current line number and cannot be used a variable/constant name.


Be The First To Comment