Richard Lynch wrote:
PHP's wordwrap function may have an optional argument to FORCE it to
never be wider than X characters, but I don't think so...
http://www.php.net/wordwrap
string wordwrap (string str [, int width [, string break [, bool cut]]])
"If the cut is set to 1, the string is always wrapped at the specified
width. So if you have a word that is larger than the given width, it is
broken apart. (See second example)."
Example:
$string = wordwrap($string, 30, '<br>', true);
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php