クラス名を変数に入れて使う。
class Test{ public static function e(){echo 'test';} public function f(){echo 'test';} } $c = 'Test'; $c::e(); $x = new $c(); $x->f();
こういう使い方もできるんですね。
class Test{ public static function e(){echo 'test';} public function f(){echo 'test';} } $c = 'Test'; $c::e(); $x = new $c(); $x->f();
こういう使い方もできるんですね。