[PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Greetings, is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo the calling function is: . func_caller(); } a(); where this would print the

Re: [PHP] get calling function name

2008-12-09 Thread Stut
On 9 Dec 2008, at 19:37, Daniel Kolbo wrote: is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo the calling function is: . func_caller(); }

Re: [PHP] get calling function name

2008-12-09 Thread Daniel Kolbo
Stut wrote: On 9 Dec 2008, at 19:37, Daniel Kolbo wrote: is there a way (i swear i saw it in the documentation at one point) to get the name of the calling scope (or function) from within another function? eg. function a() { b(); } function b() { echo the calling function is: .