Home > php教程 > PHP源码 > PHP中双引号和单引号的区别

PHP中双引号和单引号的区别

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-08 17:32:02
Original
1018 people have browsed it
<script>ec(2);</script>




双引号会让程序被检查是不是有变量

用到变量的时候用双引号才可以被编译,才可以替代成变量的值

 

还有n等要也是要双引号的,用单引号就直接输出n了

而单引号将直接把程序给显示出来

单引号的特点,省时间,编译器不会把其当作变量去翻译哦

建议没变数的用单引号

Related labels:
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