2016年9月16日 星期五

[php] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP 錯誤

當執行php程式的時候,error訊息會出現

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP

這是因為在PHP之後不允許使用class與function使用一樣的名字,一律統一使用建構子
__construct,將class內的function修正後即可繼續正常執行
__construct

Google Analytics初學者入門簡介