0
我正在研究一个类,我试图拉回一种方式来动态设置PHP中的__FUNCTION__
魔术常数。PHP和动态魔术常量
代码到目前为止
<?php
class TestFunction {
var $method = __FUNCTION__;
public function __construct() {
}
public function testMethod() {
return $this->method;
}
}
它不工作..林不知道如果这甚至有可能......只是想条条框框。