Home  >  Q&A  >  body text

. 双引号解析转义字符,单引号不解析转义字符。但,单引号能解析\' 和\

这个是什么意思

phpcn_u857phpcn_u8572820 days ago1327

reply all(3)I'll reply

  • 数据分析师

    数据分析师2017-10-01 00:25:09

    . 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.

    reply
    0
  • 呵呵呵

    呵呵呵2017-09-20 14:29:15

    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.

    reply
    1
  • 大家讲道理

    大家讲道理2017-02-20 09:08:31

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



    reply
    0
  • Cancelreply