Function Name available within function?

From: Date: Thu, 24 Jul 2003 22:13:59 +0000
Subject: Function Name available within function?
Groups: php.db 
Request: Send a blank email to php-db+get-29466@lists.php.net to get a copy of this message
Is there some sort of master variable which will tell you which function you are currently in? Like __FUNCTION__ like there is for __FILE__ and __LINE__... Something like that. Even a function that does that? I am writing a program in which several functions refer back to themselves by name, and it'd be nice to be able to do it dynamically. If I change a function name, then I have to change (currently) the string that contains the function name within that function. Peter --------------------------------------------------------------------------- Peter Beckman Internet Guy beckman@purplecow.com http://www.purplecow.com/ ---------------------------------------------------------------------------

« previous php.db (#29466) next »