. 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
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.
. 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.
双引号能解析变量,单引号不能解析,只是原样输出变量,\本身是转义符不是变量。