-
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");
?>
-
- Error
- Inside block executed...
- Outside block executed...
- Interview Mania
- None of these
Correct Option: A
Function Z is declared twice.