I can get name of the current function with
__FUNCTION__
But is it possible to get name of another function, for example a function of an object I have in the scope of the called function?
I can get name of the current function with
__FUNCTION__
But is it possible to get name of another function, for example a function of an object I have in the scope of the called function?
Nope, functions don't store their own names (and closures are anonymous, anyway).
#function
(previously __FUNCTION__
) is more of a pre-processing-style trick than it is some behaviour that introspects the currect function at runtime.