Q:

What will be the output of the following PHP code ?

belongs to collection: FUNCTIONS IN PHP MCQ

0

What will be the output of the following PHP code ?

<?php
    function TV($string)
    {
        echo "my favourite TV show is ".$string;
        function b()
        {
            echo " I am here to spoil this code";
        }
    }
    function b()
    {
        echo " I am here to spoil this code";
    }
    b();
?>

  1. I am here to spoil this code
  2. Error
  3. my favourite TV show isI am here to spoil this code
  4. None of the mentioned

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).I am here to spoil this code

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

FUNCTIONS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code ... >>
<< What will be the output of the following PHP code ...