Forum Moderators: coopster
You could use the function wordwrap [php.net]() to do this.
php.net:
wordwrap -- Wraps a string to a given number of characters using a string break character.$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap( $text, 20 );
NN