非静态地调用静态方法
I came across something like this, and am not sure what to make off it. Is there any good reason to do this, or to avoid it?
class Foo {
static public function bar() {}
}
someMethod() {
$instanceOfFoo->bar();
}
dtuzjzs3853
2013/04/02 02:24- static
- php
- 点赞
- 收藏
- 回答
满意答案
2个回复
