[ThinkPHP]报错:Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in E:wampwwwjdlhapplicationindexcontrollerIndex.php on line

错误提示说命名空间声明语句必须是第一句,可我看就是第一句没毛病呀,这是为啥呢,后面发现<?php 前面有个空格,删掉就正常了

去掉空格之后页面能正常显示

每天进步一点点
原文地址:https://www.cnblogs.com/youantianqin/p/10869599.html