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

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

WBOY
WBOYOriginal
2016-06-08 17:32:02993browse
<script>ec(2);</script>




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

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

 

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

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

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

建议没变数的用单引号

Statement:
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