Reputation: 143
Why have 2 functions that does the same thing? They both add a linebreak.
Any diffrence between them?
Upvotes: 14
Views: 36530
Reputation: 400932
This has nothing to do with PHP, and is a consequence of history :
\n
for linebreaks\r
PHP has just kept that behavior -- so it can work with those different OSes and their files.
Also, note :
\r
is Carriage return\n
is NewlineUpvotes: 34