1.

What will be the output of the following PHP code ?
<?php
function fun($str)
{
echo "hello n".$str;
function Z()
{
echo "Inside block executed... n";
}
}
function Z()
{
echo "Outside block executed... n";
}
Z();
fun("Interview Mania");
?>

A. Error
B. Inside block executed...
C. Outside block executed...
D. Interview Mania
E. None of these
Answer» B. Inside block executed...


Discussion

No Comment Found

Related MCQs