adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code?
<?php
function one()
{
    echo " this works";
    function two()
    {
        echo "this too works";
    }
}
one();
two();
?>

a.

error

b.

this works

c.

this worksthis too works

d.

this works this too works

Posted under PHP

Answer: (c).this worksthis too works

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code?

Similar Questions

Discover Related MCQs