[PHP] Re: Text file breaking!

2003-06-05 Thread zavaboy
Thanks! :) "Bobby Patel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > try this > $string = ereg_replace ('\r\n|\n|\r', '', $string); > OR > $string = nl2br($string); > > NOTE: for me the first case will remove the newline, whereas the second will > keep them (It might be becuase

[PHP] Re: Text file breaking!

2003-06-05 Thread Bobby Patel
try this $string = ereg_replace ('\r\n|\n|\r', '', $string); OR $string = nl2br($string); NOTE: for me the first case will remove the newline, whereas the second will keep them (It might be becuase of my old php version [4.06]?) "Zavaboy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE