1.子類內部訪問父類靜態成員屬性或方法,使用 parent::method()/self::method() 注意:$this->staticProperty(父類的靜態屬性不能夠經過$this(子類實例)來訪問,會有這樣報錯:PHP Strict Standards: Accessing static property Person::$country as non static in,PHP Notice: Undefined property: ) 2.子類外部 1.子類名::method() 2.子類實例->method() (靜態方法也能夠經過普通對象的方式訪問) 注意:子類實例->staticProperty(父類的靜態屬性不能夠經過子類實例來訪問,會有這樣報錯:PHP Strict Standards: Accessing static property Person::$country as non static in,PHP Notice: Undefined property: )this