Page 1 of 1

find function name?

Posted: Tue May 27, 2008 9:57 am
by jpschroeder
Hello!

I'm brand new to the forum, so hello to everyone.

I've googled and googled, and looked at php.net pages till my eyes bleed, but I can't find (it might not exist) a way to find the name of the current function. Its somewhat of an odd need, but quite necessary. Here's an example of what I need:

Code: Select all

 
function myfunction(){
     echo this_function_name;
}
//output would be myfunction
 
Any help!? thanks.

Re: find function name?

Posted: Tue May 27, 2008 10:12 am
by onion2k

Re: find function name?

Posted: Tue May 27, 2008 11:59 am
by jpschroeder
wow...I feen so noobish. Appreciate the help!