記:解決Namespace declaration statement has to be the very first statement in the script 錯誤

TP5 運行出現 Namespace declaration statement has to be the very first statement in the script 錯誤 解決方法: 問題就出在文件格式上,因爲偷懶解決衝突直接用記事本打開文件保存提交後發現出了以上的問題,最後把頁面轉爲utp-8無dom格式  順利解決問題(如有使用PhpStorm的可以如圖操作把文件修改爲無BOM格
相關文章
相關標籤/搜索