可能重复:
PHP:self 与 this以及 何时在 $this 上使用 self
$this
和有什么区别self::
例子:
class Object{
public $property;
function doSomething(){
// This
$something = $this->property;
// Self
$something = self::property;
...code...
}
}