I wouldn't know under what keyword to look for this in the PHP database, so I'm asking here.
Reason I want to know is because of how different Operating Systems handle new lines in textdocuments.
I'm using a CSV file in windows but each time I think I add a new line, what really happens is the new line gets pasted to the back of the latest line.
Reason is, in windows, a new line is this: \r\n
And the CSVHandler.class.php file I'm using only adds \n
However, in MAC OS X that's the new line, which is different from windows.
So I'm looking for this so I can implement a simple if()
statement and solve this. Currently I've hardcoded the \r\n
, but it should be simpler, no?