ExamVeda
Login
Home
This question belongs to PHP Functions
Functions
?

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";
  }
}
a("Sherlock");
b();
?>

Answer & Solution
Correct Answer: Option C
b is declared as TV() is executed first.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.