Re: Splitting long text

From: Date: Wed, 24 Jan 2007 02:46:56 +0000
Subject: Re: Splitting long text
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-247660@lists.php.net to get a copy of this message
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 into text. http://php.net/explode http://php.net/implode http://php.net/array-slice Regards, Paul __________________________ Juniper Webcraft Ltd. http://juniperwebcraft.com

« previous php.general (#247660) next »