[PHP] Re: wordwrap()

2001-07-17 Thread Henrik Hansen
[EMAIL PROTECTED] (Rehuel Lobato De Mesquita) wrote: > Hey Ty, > > I had the same problem. I read somewhere that you can use "\r\n" instead. \r it's windows that uses \r\n so if you run your scripts on a windows machine it might be a good idea to split on them too. -- Henrik Hansen -- PH

[PHP] Re: wordwrap()

2001-07-17 Thread Rehuel Lobato de Mesquita
Hey Ty, I had the same problem. I read somewhere that you can use "\r\n" instead. \r returns home and \n adds a new line! It works fine here! Rehuël "Tyler Longren" <[EMAIL PROTECTED]> wrote in message 00aa01c10ed3$a3253ee0$[EMAIL PROTECTED]">news:00aa01c10ed3$a3253ee0$[EMAIL PROTECTED]... > Ma

[PHP] Re: wordwrap()

2001-07-17 Thread Henrik Hansen
[EMAIL PROTECTED] (Tyler Longren) wrote: > Maybe I'm not using it right, but I'm using the sample in the manual. > Here's the code: > $text = "A very long wrd."; > $newtext = wordwrap( $text, 8, "\n", 1); > echo "$newtext\n"; > ?> you should use $newtext = wordwrap( $text, 8,