function word_wrap($text) { $chars = "10"; $text = wordwrap($text, $chars, "<br />", 1); return $text; }