调用功能 [英] Calling function

查看:67
本文介绍了调用功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有没有办法调用母功能?


我的意思是

展开 | 选择 | Wrap | 行号

解决方案

你的意思是得到当前函数被调用的函数的名称吗?


如果是这样,定义一个Mother函数是不正确的术语。

我将它简单地定义为一个调用函数。


我不知道一个php函数这样做。

解决方法是将参数作为标记传递。


嘿绿色,

我也想到了这一点,传递了函数名称。但是我一直在寻找可用于访问函数堆栈的任何选项。


好吧,出于调试目的,你可以使用 debug_backtrace


Hello All,
Is there any way to call the mother function?

I mean

Expand|Select|Wrap|Line Numbers

解决方案

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.


这篇关于调用功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆