RE: [PHP] Re: Breaking a line in two
| From: | Warren Vail | Date: | Thu, 21 Aug 2008 06:55:05 +0000 |
| Subject: | RE: [PHP] Re: Breaking a line in two | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278449@lists.php.net to get a copy of this message | ||
Right, that's what I can't imagine why he would possibly need to keep the
space.
Warren Vail
> -----Original Message-----
> From: Micah Gersten [mailto:micah@onshore.com]
> Sent: Wednesday, August 20, 2008 9:24 AM
> To: ash@ashleysheridan.co.uk; PHP General
> Subject: Re: [PHP] Re: Breaking a line in two
>
> 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@onshore.com>
> > Date:
> > Wed, 20 Aug 2008 10:49:49 -0500
> > To:
> > php-general@lists.php.net
> >
> > To:
> > php-general@lists.php.net
> >
> >
> > 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
>