[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

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Faither
Stut wrote: Faither wrote: 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

[PHP] Getting a 'newline' out of a string

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

[PHP] Getting a 'newline' out of a string

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