In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to