Posted by Krustov on 07/30/06 00:00
<comp.lang.php>
<Ian Davies>
<Sat, 29 Jul 2006 23:42:48 GMT>
<YnSyg.115151$OT.43569@newsfe6-win.ntli.net>
> 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>";
>
http://uk2.php.net/manual/en/function.wordwrap.php
--
Encrypted email address
www.emailuser.co.uk/?name=KRUSTOV
Make a shorter url
www.vhit.co.uk
Navigation:
[Reply to this message]
|