'\' "\" 都是特殊字符

qiuq@cv0041190n0 MINGW64 /d/phpStudy/WWW/d82 (master)
$ php -r "echo '\';"
PHP Parse error:  syntax error, unexpected ''\';' (T_ENCAPSED_AND_WHITESPACE) in
 Command line code on line 1

Parse error: syntax error, unexpected ''\';' (T_ENCAPSED_AND_WHITESPACE) in Comm
and line code on line 1


qiuq@cv0041190n0 MINGW64 /d/phpStudy/WWW/d82 (master)
$ php -r 'echo "\";'
PHP Parse error:  syntax error, unexpected end of file, expecting variable (T_VA
RIABLE) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in Command line
code on line 1

Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABL
E) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in Command line code
on line 1

posted @ 2017-07-19 17:46  qqisnow2021  阅读(493)  评论(0编辑  收藏  举报