Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

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

    <?php

    function movie($int)

    {

    $movies = array("Fight Club", "Kill Bill", "Pulp Fiction");

    echo "You Do Not Talk About ". $movie[$integer];

    }

    movie(0);

    ?>

  2. A.

     I

    B.

     You Do Not Talk About Fight Club

    C.

     You Do Not Talk About Kill Bill

    D.

     You Do Not Talk About Pulp Fiction

    E.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Simple use of arrays.


Be The First To Comment