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

tp框架报这个错误,错误行数就是namespace那行,错误很无厘头,让你摸补到头脑.原来 是php开头标签不知道什么时候打了几个空格.汗!

上网查了下,namespace前面不能有空格,必须是第一行,连php标签外面也不行

tp框架报错 Namespace declaration statement has to be the very first statement in the script-LMLPHP

05-11 13:34