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
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Mon Jun 02, 2003 9:15 am
Does anyone know if there is something such as "caller_function()" which would return the function-name of the function that called another function?
I've scouted around in google, php-manual etc. but simply can't find anything.
McGruff
DevNet Master
Posts: 2893 Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland
Post
by McGruff » Mon Jun 02, 2003 12:47 pm
I suppose you could build that into user-defined functions but I don't know if you could get a value for a native php function.