Home > php教程 > php手册 > body text

php的echo输出错误

WBOY
Release: 2016-06-06 19:46:42
Original
1147 people have browsed it

今天本来想copy一段json到自己的服务器上,但是echo了以后发现问题,说是 PHP Parse error: syntax error, unexpected 'comic' (T_STRING) in C:\websoft\web\phpwind\app\u17test\comic.php on line 3 问题是明明我请求好好的数据,放到自己的服务器上就不

今天本来想copy一段json到自己的服务器上,但是echo了以后发现问题,说是

PHP Parse error:  syntax error, unexpected 'comic' (T_STRING) in C:\websoft\web\phpwind\app\u17test\comic.php on line 3

问题是明明我请求好好的数据,放到自己的服务器上就不行了,结果问了别人发现了问题,应该把后面的第一个"改成',末尾的"改成'

,也就是说,如果里面是“”包裹着,那么外面应该是''才对,因为php的字符串包含关系必须是"和'互斥。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!