Re: [PHP] and newlines under windows

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 11:48 am, Faither wrote: > I'm kind of lost with how str_replace , preg_replace, ereg_replace or > even explode are handling a "\n"-ewline. . . . > Is it even possible under windows? ^^ In Linux, the newline is "\n", but... Under Windows, the newline isn't "\n", it's "\r\n

[PHP] and newlines under windows

2007-08-10 Thread Faither
Hey there! I'm kind of lost with how str_replace , preg_replace, ereg_replace or even explode are handling a "\n"-ewline. I have a text string from a form and am trying to replace the "\n" or chr(10) or however you might call the newline with a simple html break tag. If I use the replacing f