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
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
[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
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 http://phorum.org
// $String The string to be wrapped.
// $breaksAt How many characters each line should be.
//
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 http://phorum.org
// $String The string to be wrapped.
// $breaksAt How many characters each
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
6 matches
Mail list logo