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

Discussion :: PHP - CS

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

    span>

    function one()

    {

    echo " this works";

    function two()

    {

    echo "this too works";

    }

    }

    one();

    two();

    ?>

  2. A.

     error

    B.

     this works

    C.

     this worksthis too works

    D.

     this works this too works

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Two is declared in one and is called after one.Hence it works.


Be The First To Comment