调用功能 [英] Calling function
问题描述
大家好,
有没有办法调用母功能?
我的意思是
你的意思是得到当前函数被调用的函数的名称吗?
如果是这样,定义一个Mother函数是不正确的术语。
我将它简单地定义为一个调用函数。
我不知道一个php函数这样做。
解决方法是将参数作为标记传递。
Hello All, 这篇关于调用功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
我也想到了这一点,传递了函数名称。但是我一直在寻找可用于访问函数堆栈的任何选项。
好吧,出于调试目的,你可以使用 debug_backtrace 。
Is there any way to call the mother function?
I mean
Do you mean get the name of the function that the current function was called by?
If so, defining it a Mother function is incorrect terminology.
I define it simply as a calling function.
I am not aware of a php function that does this.
A work around would be to pass a parameter as a marker.hey green,
i thought about that too, passing the function name. But I was looking for if any option available to access the function stack.Well, for debugging purposes you can use debug_backtrace.