can I do:
explode(\"\\n\", $_POST[\'thetextarea\']);
and have it work on all platforms? (The question I am asking is will it ever be \\r\\n
You should use:
explode("\r\n", $_POST['thetextarea']);
It will always be the same.
Browsers and other user-agents will make sure they are :-)
See http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.1 for more info.