Ash www.ashleysheridan.co.uk |
--- Begin Message ---
- To: ash@xxxxxxxxxxxxxxxxxxxx, PHP General <php-general@xxxxxxxxxxxxx>
- Subject: Re: Re: Breaking a line in two
- From: Micah Gersten <micah@xxxxxxxxxxx>
- Date: Wed, 20 Aug 2008 11:24:06 -0500
- Delivery-date: Wed, 20 Aug 2008 17:24:27 +0100
- Envelope-to: ash@xxxxxxxxxxxxxxxxxxxx
- In-reply-to: <1219248280.4213.12.camel@xxxxxxxxxxxxxxxxxxxxx>
- User-agent: Thunderbird 2.0.0.16 (X11/20080724)
Actually, in HTML the space is irrelevant if you are breaking the line. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ashley Sheridan wrote: > Unfortunately, the wordwrap function won't do what he needs. He needed > to add a <br/> *after* the space, and not replace the space. > > Ash > www.ashleysheridan.co.uk > > > ------------------------------------------------------------------------ > > Subject: > Re: [PHP] Re: Breaking a line in two > From: > Micah Gersten <micah@xxxxxxxxxxx> > Date: > Wed, 20 Aug 2008 10:49:49 -0500 > To: > php-general@xxxxxxxxxxxxx > > To: > php-general@xxxxxxxxxxxxx > > > If you use wordwrap, you don't need nl2br. See Example 1 for wordwrap. > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > > > Lupus Michaelis wrote: > >> Ron Piggott a écrit : >> >> >>> This is 23 characters long. I want <br> added after the 12th character, >>> following the first space: >>> >> I guess you want to use wordwrap <http://www.php.net/wordwrap> and >> nl2br <http://www.php.net/nl2br>. >> >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php