PHP Line Endings; CRLF; CR; LF; Newline; Linebreaks

define('CR', "\r");          // Carriage Return: Mac
define('LF', "\n");          // Line Feed: Unix
define('CRLF', "\r\n");      // Carriage Return and Line Feed: Windows
define('BR', '<br />' . LF); // HTML Break
This post is available on GitHub.
Posted .

Comments

Leave a Reply