Why have 2 functions that does the same thing? They both add a linebreak.
Any diffrence between them?
Why have 2 functions that does the same thing? They both add a linebreak.
Any diffrence between them?
One is a carriage return, and the other is a new line. They're different but may be treated similarly depending on your environment/language.
This has nothing to do with PHP, and is a consequence of history :
\n for linebreaks\rPHP has just kept that behavior -- so it can work with those different OSes and their files.
Also, note :
\r is Carriage return\n is Newline