Page 1 of 1

calling function?

Posted: Mon Jun 02, 2003 9:15 am
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.

Posted: Mon Jun 02, 2003 12:47 pm
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.