Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread David Grant
Labunski wrote: > I need to split a long string into smaler chunks (an array), as a separator > using every third \n (and not just every \n). > I could use 'explode', but then it would produce too many chunks. php.net/preg_split Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP Ge

Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread Anas Mughal
Split them using explode and then combine the ones you need to combined. Hope this helps. -- Anas Mughal On 12/19/05, Labunski <[EMAIL PROTECTED]> wrote: > > I need to split a long string into smaler chunks (an array), as a > separator > using every third \n (and not just every \n). > I could us

RE: [PHP] ? Split string into smaller chunks

2005-12-19 Thread Jay Blanchard
[snip] I need to split a long string into smaler chunks (an array), as a separator using every third \n (and not just every \n). I could use 'explode', but then it would produce too many chunks. [/snip] http://us2.php.net/manual/en/function.chunk-split.php -- PHP General Mailing List (http://ww