... 產生物件時就先執行此方法 echo "start!!"; } function 方法2(){ echo $this->屬性1+$this->屬性2; // 類別內稱自身物件為this,取物件之屬性或方法:物件名-> } }
確定! 回上一頁