Re: Text Wrapper
| From: | jtjohnston | Date: | Sat, 10 Nov 2001 09:03:19 +0000 |
| Subject: | Re: Text Wrapper | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74090@lists.php.net to get a copy of this message | ||
How long have I been f***ing around with perl?
Thanks someone for thinking that one up! :)
Brian Clark wrote:
> Hi jtjohnston,
>
> @ 2:16:38 AM on 11/10/01, jtjohnston wrote:
>
> > $string = "Mary had a little lamb whose face was icy cold. Everywhere
> > that Mary went the townsfolk were sure to know";
>
> > I want to display the text where the max number of characters on any
> > one line is 34.
>
> > 1234567890123456789012345678901234
> > Mary had a little lamb whose face
> > was icy cold. Everywhere that
> > Mary went the townsfolk were
> > sure to know.
>
> > Where would I start?
>
> PHP 4.0.2 or greater?
>
> http://www.php.net/manual/en/function.wordwrap.php
>
> If not, check out the user notes at the bottom.
>
> --
> -Brian Clark | PGP is spoken here: 0xE4D0C7C8
> Please, DO NOT carbon copy me on list replies.