首页 > 其他 > 详细

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

时间:2017-06-02 18:52:24      阅读:374      评论:0      收藏:0      [点我收藏+]

php 中 

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

 

在PHP文件中编写有namespace 时候提示此错误,应该将  <?php  开始前面不能有语句,空行也不行。

如果是在含有<html>语言的混合php 文件里面,且文件里面至少有一个<?php   ?>代码段时候,只要用到namespace,该文件的首行必须以<?php开头.

 

技术分享

 

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

原文:http://www.cnblogs.com/soundcode/p/6934652.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!