+ 2
Nested functions?
Can we make nested functions (i.e func in func) in PHP as in Python?
1 Odpowiedź
+ 2
<?php
function main_function()
{
function sub_function()
{
return "This is from sub";
}
return sub_function();
}
echo main_function();
?>