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);
?>

A. This is my favourite show Naagin.
B. This is my favourite show CID.
C. This is my favourite show Big Boss.
D. Error
E. None of these
Answer» D. Error


Discussion

No Comment Found

Related MCQs