theruss

FYI, I always use PHP_EOL which always gives you a platform-specific newline

lerni

probably it would have taken me ages to figure that one out - what an enlightenment to not have to be in a wtf-mood 😉

dorsetdigital

Similar things apply with interpolating PHP variables in strings (which I hate anyway)

Joe

that’s one of those kind-of-obscure fun facts that hardly ever comes up in practice, but when it does it’s a pain to troubleshoot

Joe

@lerni I think you might have to use double-quotes around your \r\n inside the implode() for it to be interpreted as newlines (instead of as a string literal)

lerni

yes but somehow I ended up having '\n' or '\r\n' in there