您的位置:首页 > 编程语言 > PHP开发

Namespace declaration statement has to be the very first statement in the script

2017-08-15 19:56 501 查看
自己的代码命名空间明明是第一行,为什么会有这种错误。

 

这可能就是BOM头的原因 。去掉BOM头就可以解决。

奉上链接   http://blog.csdn.net/ohmygirl/article/details/6931716  http://blog.sina.com.cn/s/blog_53729e460102wafl.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  php namespace
相关文章推荐