Discussion :: PHP - CS
-
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
Explanation :
Simple use of arrays.
Be The First To Comment