advanced code snippet search
ginoplusio on 12/09/08
function wrap word wordwrap
2 people have marked this snippet as a favorite
it already exists in php
$text = "A very long woooooooooooord.";$newtext = wordwrap($text, 8, "\n", true); echo "$newtext\n";
Report this snippet
You need to login to post a comment.