在PHP中,如何获取在函数调用中传入的变量名?
问题描述:
trace($this->_classResources,'$this->_classResources');
如果我能得到$this->_classResources",那么我就不需要第二个参数了.
If I can get "$this->_classResources" then I don't need the second params.
答
你不能,也不应该能够.您可能有一种不同的方式来构建代码来解决这个问题.
You can't, and shouldn't be able to. There is probably a different way you could structure your code to get around this problem.