Is there any way (dirty is fine, this is only for debugging) to get the __FUNCTION__
(function name) from where a function was called from?
example;
function a() {
//code
return b();
}
function b() {
return __PARENT_FUNCTION__
}
echo a();
This should yield a
as the function name that was originally called for this output