php method to get the calling method name: call the submit method in the onGroupDelete method, the code is [StackTraceElement temp=Thread.currentThread().getStackTrace()].
【Related learning recommendations: php graphic tutorial】
php method to get the calling method name:
As shown in the picture: I called the submit method in the onGroupDelete method, and I want to get it in the submit method The onGroupDelete method name uses the code in the submit method:
// 获取调用此方法的方法名 StackTraceElement temp=Thread.currentThread().getStackTrace(); String methodName = temp.getMethodName();
##Related learning recommendations:php programming (video)
The above is the detailed content of How to get the calling method name in php. For more information, please follow other related articles on the PHP Chinese website!