Jimmy Bäckström <[EMAIL PROTECTED]> wrote:
> I thought about reading the whole message into an array, and then loop through it
>and for each word check whether it is larger than x chars, and if so, change it. But
>couldn't that be a very memory consuming script if it should do that for every
>message? Anyone knows how I could do this?
Dont! look at the wordwrap function, in short in works like this:
echo wordwrap ($body, $length, "<br>");
read more here:
http://www.php.net/manual/en/function.wordwrap.php
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]