Posted by Ian Davies on 07/30/06 11:46
Thanks all thats exactly what I was looking for.
wordwrap was adequate for my needs
Ian
"Ian Davies" <ian.dandav@virgin.net> wrote in message
news:YnSyg.115151$OT.43569@newsfe6-win.ntli.net...
> Hello
> I have a string of varying length, lets call it $mystring.
> I wish to break it up and put it in the following form
>
> echo"<span
>
class='myclass'>".1st_30chars_$mystring_to_nearest_word."<br>".2nd_30chars_$
>
mystring_to_nearest_word."<br>".....etc....last_lot_of_chars_of_$mystring."<
> /span>";
>
> does anyone know how to do this
> Ian
>
>
Navigation:
[Reply to this message]
|