I’m setting up a php mail sending script…
While adding different headers, I’ve come across the symbol for a new line in the email (since a < br > tag won’t do)…
So my question is what is the difference between \r\n and \n\n ?
for example:
echo $var1 . " \r\n" . $var2 . "\n\n";
thanks for your help!
\rmeans carriage return and\nmeans new line. Its easier to think about it like a type writer, the\ris when you push the paper holder (maybe it is called a carriage???) from the left to right, so you can type at the beginning of the line, and the\nwill lower the line by one. Traditionally windows and windows based programs required both, but most programs now recognize\nas a new line for all operating systems.