报错:Namespace declaration statement has to be the very first statement in the script的解决方法

报错:Namespace declaration statement has to be the very first statement in the script,解决方法:
比如报错文件是AccessController.class.php。用系统新建一个txt文本,把文件名字(包括扩展名)改成AccessController.class.php,
并将原AccessController.class.php的代码内容复制过来,保存运行即可!
原文地址:https://www.cnblogs.com/benbenchen/p/6610519.html