<?php
//break long word.
function line_wrap($str$max 50) {
    
$str preg_replace('/(\S{' $max ',})/e''wordwrap(\'$1\', ' $max ', "\n", true)'$str);

//return string
return $str;
}

//usage
echo line_wrap('Thisisanexampleofalinethatexceedsthelimitofallowedcharacters.'30);
?>
 back to the menu  download  try out this script 
(note: some scripts won't run from this location)