【PHP】static靜態方法和普通方法的相互調用

author:咔咔 wechat:fangkangfk   Static 關鍵字 由於靜態方法不需要通過對象即可調用,所以僞變量 $this 在靜態方法中不可用。 靜態屬性不可以由對象通過 -> 操作符來訪問。   1.普通方法調用靜態方法 $this self parent Index(本類)       2.靜態方法調動普通方法 Using $this when not in object c
相關文章
相關標籤/搜索