Page 1 of 1

Dealing with line breaks...

Posted: Thu May 29, 2008 7:34 pm
by Mr Tech
I know that macs, windows and linux machines all deal with line breaks differently... I think Macs are /r, windows are /n and Linux are /r/n... not sure if I'm 100% right but ti's something like that...

How do you deal with this when creating php code? I'm using the explode function to put line breaks into an array... But it will only work for a certain format. How do I put line breaks into an array and still make it work on all machines?

Re: Dealing with line breaks...

Posted: Sun Jun 01, 2008 11:36 pm
by Mr Tech
Has no one dealt with this issue before? I didn't think it would be such a hard answer... Anyone have any ideas where I should look to handle this?