Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code ?
    <?php
    function TvShow($int)
    {
    $TvShow = array("Naagin.", "CID.", "Big Boss.");
    echo "This is my favourite show ". $TvShow[$int];
    }
    TvShow(2);
    ?>
    1. This is my favourite show Naagin.
    2. This is my favourite show CID.
    3. This is my favourite show Big Boss.
    4. Error
    5. None of these
Correct Option: C

Simple use of arrays.



Your comments will be displayed only after manual approval.