Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
function one()
{
    echo " this works";
    function two()
    {
        echo "this too works";
    }
}
one();
two();
?>

  1. error
  2. this works
  3. this worksthis too works
  4. this works this too works

All Answers

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

 (c).this worksthis too works

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now