という事は承知しています:
'\n' // literally the backslash character followed by the character for lowercase n
"\n" // interpreted by php as the newline character
しかし、私の人生では、なぜなのか理解できません'\n' === '\\n'
。私の考えで'\\n'
は、 は 3 つの個別の文字に相当します。2 つの個別のバックスラッシュと、その後に文字 n が続きます。
なぜ'\n' === '\\n'
PHP で true なのですか?