所以我想知道当初始方法是静态函数时是否有方法链的方法。这就是我的意思:
class foo
{
public static function a()
{
$foo = new foo;
return $foo->bar();
}
public function bar()
{
return $this;
}
public function b()
{
return 1;
}
}
print foo::a()->b();
编辑
print foo::a()->b();
不print foo:a()->b();