Re: 'the missing character'

From: Date: Wed, 16 May 2001 07:15:41 +0000
Subject: Re: 'the missing character'
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9344@lists.php.net to get a copy of this message
In article <Pine.LNX.4.21.0105152140470.5328-100000@jimmy.ops.cp.net>, jimmy@cp.net (Jimmy Brake) wrote: > Does anyone know of a function in php that will take a chunk of text and > seperate it into 'chunks' preferably returning it in an array? > > The reason being is that I have some columns(oracle) that are set to > varchar2(4000) and I have text that is 4000+ AND :-) I cannot change it to > another format. > > I was unable to find a chunk maker so I built one. <snip a lot of code> I'm way tired so may not be reading your code closely enough, but it looks to me like you could do produce the same functionality like this: $breakstring="***BREAK ME HERE!***"; //use whatever you want $inputstring=wordwrap($inputstring, 3500 , $breakstring); $outputarray=explode($breakstring,$inputstring); -- CC

« previous php.db (#9344) next »