Discussion Forum : Php Functions
Question - What will be the output of the following PHP code ?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();TV("Sherlock");
Options:
A .  Error
B .  None of the mentioned
C .  My favourite TV show isI am here to spoil this code
D .  I am here to spoil this code
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *