calling function?

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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

calling function?

Post by patrikG »

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 »

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.
Post Reply