it roughly looks like this:
Code: Select all
function recursive($array)
{
if %%%% exists
{
replace it
recursive($array)
}
else
{
print_r $array
return $array
}
< marker 1>
}When I put a return $array at marker 1, the file is returned, however it is not the completed array.
Why does this happen?
How do I return a value at else?