Re: [PHP] Splitting long text

2007-01-23 Thread Paul Novitski
At 1/23/2007 05:52 PM, Skip Evans wrote: I have a requirement to take a large amount of text, a story submitted to a competition, and split into displayable chunks of 600 words each. At 1/23/2007 07:20 PM, Anas Mughal wrote: // textwrap 1.1 Brian Moon <[EMAIL PROTECTED]> // This code is part

Re: [PHP] Splitting long text

2007-01-23 Thread Travis Doherty
Anas Mughal wrote: > I have been using the below function successfully. Hope it works for you. > -- Anas > > > > // textwrap 1.1 Brian Moon <[EMAIL PROTECTED]> > // This code is part of the Phorum project > // $String The string to be wrapped. > // $breaksAt How many char

Re: [PHP] Splitting long text

2007-01-23 Thread Anas Mughal
I have been using the below function successfully. Hope it works for you. -- Anas // textwrap 1.1 Brian Moon <[EMAIL PROTECTED]> // This code is part of the Phorum project // $String The string to be wrapped. // $breaksAt How many characters each line should be. // $br

RE: [PHP] Splitting long text

2007-01-23 Thread Jay Blanchard
[snip] I have a requirement to take a large amount of text, a story submitted to a competition, and split into displayable chunks of 600 words each. I'd like some feedback on the best way to this. [/snip] There are many ways to skin this cat Skip but you can start with the basics of using explo

Re: [PHP] Splitting long text

2007-01-23 Thread Paul Novitski
At 1/23/2007 05:52 PM, Skip Evans wrote: I have a requirement to take a large amount of text, a story submitted to a competition, and split into displayable chunks of 600 words each. You can explode a text into an array of words, slice off a 600-element array, and implode the result back int

[PHP] Splitting long text

2007-01-23 Thread Skip Evans
Hey all, I have a requirement to take a large amount of text, a story submitted to a competition, and split into displayable chunks of 600 words each. I'd like some feedback on the best way to this. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2