Yes - __FUNCTION__ would hold ( string )[function name] "Peter Beckman" <beckman@purplecow.com> wrote in message 20030724181222.N32943@thermonuclear.org">news:20030724181222.N32943@thermonuclear.org... > 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/ > -------------------------------------------------------------------------- - -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php