[thelist] Q on PHP functions...

Kasimir K evolt at kasimir-k.fi
Tue Apr 6 13:28:38 CDT 2004


I'm just wondering when this would be needed, as the name of the 
function is not changing, so you achive what you want by simply:

function foo()
{
    echo 'foo';
}

Or do you have something where this wouldn't work?

.kasimir

> is it possible to display the name of the function within the current
> function?
> 
> function foo()
> {
>    echo <thisFuncName>;  // this should display 'foo'
> }
> 
> ????
> 
> Thanks
> 
> Walter
> 
> 


More information about the thelist mailing list