Looked everywhere on the internet for an answer to this without much luck, so here I am. I’ve been dissecting scripts purchased off of the CodeCanyon.net site to learn OOP and I’ve noticed that a lot of lines end in /r/n. Why is this common practice, and what is the practical use? Thanks in advance!
Share
Taken from here
\r\n are end of line characters for Windows systems.
\n is the end of line character for UNIX systems.
It is to ensure cross-OS compatibility.