find function name?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jpschroeder
Forum Newbie
Posts: 4
Joined: Tue May 27, 2008 9:54 am

find function name?

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: find function name?

Post by onion2k »

jpschroeder
Forum Newbie
Posts: 4
Joined: Tue May 27, 2008 9:54 am

Re: find function name?

Post by jpschroeder »

wow...I feen so noobish. Appreciate the help!
Post Reply