find function name?
Posted: Tue May 27, 2008 9:57 am
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:
Any help!? thanks.
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