wordwrap fonksiyonu
Alıntı
string wordwrap ( string $str [, int $width = 75 [, string $break = "\n" [, bool $cut = false ]]] )
<?php
$text = "A very long woooooooooooord.";
$newtext = wordwrap($text, 8, "<br />", true);
echo "$newtext\n";
?>
işinizi görür