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
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();
}
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: .
3 matches
Mail list logo