我想從類中調用一個帶有變量名稱的靜態函數。 期望的結果: class Controller extends Controller {
public $model = 'ModelName';
public function index() {
$woot = $this->model::find('');
var_dump($woot);
}
class test {
public:
static int n;
test() { n++; };
~test() { n--; };
};
int test::n=0; //<----what is this step called? how can a class be declared as an integer?
int main() {