Page 1 of 1

Who are you?

Posted: Fri May 27, 2005 12:52 am
by harrisonad
is there a function that can tell what function or class method called him. I want this for debugging.
I mean...

Code: Select all

function foo(){
$function_name = getFunctionName(); // this I want
echo "I am inside $function_name";
}
I see this in php debuggers and i want to 'get a hold of it'.

Posted: Fri May 27, 2005 1:01 am
by hawleyjr

Posted: Fri May 27, 2005 1:07 am
by anjanesh

Posted: Fri May 27, 2005 1:08 am
by harrisonad
Thank you.

Posted: Fri May 27, 2005 2:11 am
by Weirdan