试着去理解一些东西。我有一个Config类,其中我定义了一个常量负载。在我的另一个类中,我需要使用Config中的一个常量。所以我首先用这个课程在类构造函数中,我将类赋值给一个变量。public function __construct() {}
在consturctor中,我可以通过这样的操作来访问<e
假设我们有以下几点:class public __construct() fun_stuff();configuration.incconst SOMECONST = 1;我想做这样的事情:class public __construct() include_once(configuration.inc);
f