Examveda
Examveda

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

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

Answer: Option A

Solution(By Examveda Team)

Simple use of arrays.

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions