SyntaxFix
Write A Post
Hire A Developer
Questions
Try "\n\r" (double quotes) or just "\n".
"\n\r"
"\n"
If you're not sure which type of EOL you have, run a str_replace before your explode, replacing "\n\r" with "\n".