. 双引号解析转义字符,单引号不解析转义字符。但,单引号能解析\' 和\
phpcn_u857
phpcn_u857 2017-02-20 01:25:19
0
3
1371

这个是什么意思

phpcn_u857
phpcn_u857

reply all(3)
数据分析师

. Double quotes parse escape characters, single quotes do not parse escape characters. However, single quotes can parse \' and \ -PHP Chinese website Q&A-. Double quotes parse escape characters, but single quotes do not parse escape characters. However, single quotes can parse \' and \ -PHP Chinese website Q&A

Take a look and learn.

呵呵呵

Double quotes can parse the escape characters such as n and t inside, and they will appear as spaces on the page. However, if these escape characters are placed inside single quotes, they will still be displayed on the page the same as in the code. It will not become a space.

大家讲道理

双引号能解析变量,单引号不能解析,只是原样输出变量,\本身是转义符不是变量。



Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template