我明白那个:
'\n' // literally the backslash character followed by the character for lowercase n
"\n" // interpreted by php as the newline character
但是对于我的生活,我无法理解为什么'\n' === '\\n'。在我看来,'\\n'将等于三个单独的字符:两个单独的反斜杠,后跟字母 n。
为什么'\n' === '\\n'在 PHP 中是真的?