是否可以?
function test()
{
echo "function name is test";
}
准确的方法是使用__FUNCTION__
预定义魔法常数 http://www.php.net/manual/en/language.constants.predefined.php.
Example:
class Test {
function MethodA(){
echo __FUNCTION__;
}
}
Result: MethodA
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)