Home > Backend Development > PHP Tutorial > echo问题求解

echo问题求解

WBOY
Release: 2016-06-23 14:15:01
Original
927 people have browsed it

  echo "keywords)."\"/>";
这句代码中的\与\是什么意思?这么多的"号又有什么意义?


回复讨论(解决方案)

\是用来转义的,避免"冲突
至于"还真不知道怎么说,html标准写法

转义字符!!!

转义字符 这样输出的html 结构才能保证完整

偷懒的话可以用单引号替代\",输出如形式,浏览器也能识别
但xml和xhtml标准中,属性值是应该使用双引号而不是单引号围绕的

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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template