i tried to implement the code within a loop so that i could loop through the words and then output them to the appropriate sentence.
$yourString = "one two three four five six seven eight nine";
$maxLength = 25;
for ($i=0; $i<=$maxLength;$i++) {
$newword = substr($yourString,$i,strpos($yourString,' ',$maxLength));
echo $newword."<br>";
}
/PHP]
i cant seem to get it working so that after the last word of the first sentence the next words appear on the next line.
please correct the above if you can to display ...
assuming 28 chars limit ....
one two three four five six
seven eight nine
..... and so on