caller
caller([level])
This function returns the name of the function that called this routine. If the argument level is given, it specifies the number of call frames to go back before the current one to obtain the information. Use either caller() or caller(0) to return the name of the current function.
Related Topics