What will be the output of the following PHP code? [code] <?php function TV($string) { echo "my favourite TV show is ".$string;

Ngân Lam

New member
What will be the output of the following PHP code?
Code:
<?php
    function TV($string)
    {
        echo "my favourite TV show is ".$string;
        function b()
        {
            echo " I am here to spoil this code";
        }
    }
    b();
?>
A. I am here to spoil this code
B. Error
C. My favourite TV show isI am here to spoil this code
D. None of the mentioned
 

Tìm kiếm

Back
Top