PHP Normalize Newlines/Line Endings; CRLF; CR; LF; UNIX, Windows, Mac

Reply to comment

I had a problem reading text from a mysqul database in order to create a shell script... But the scrip came out with line break in different format and could not be executed properly. So I use your script to convert text from database... AND IT WORKS fine. Thanks a lot