function parent($key)
{
function son()
{
global $key;
}
}
I want to achieve this:
son
can access the$key
ofparent
As it's quite a simple function,I don't want to change parent
into a class
OK,I've been told that function
are global anyway.Is there a way for son
to get $key
of parent
then?