Ok, I have written code to go through the file grabbing pretty much what I
need.  Now in the array after explode ($oldline=explode("|", $buffer);) I
need to split apart $oldline[9].  Each element should hold no more than 4000
characters.  So I will dump this all into a new array.  What would be the
best way to do this?

----- Original Message -----
From: "* R&zE:" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 12:16 PM
Subject: Re: [PHP] Parsing text file and dividing column into three...PLEASE
help :)

> > I have a very large text file that is set up like so:  It contains
> > some smaller columns but one HUGE one that contains the body of a
> > resume.  I am looking for help on processing this file.  What I
> > need to do is convert the final column into three columns.  Each
> > column can have no more than 4000 characters, is this possible?
> > Well I know it's possible but can someone help me?  I am down to
> > my last options :(
> </Original message>
> <Reply>
> Dunno what you want to do exactly, but have you ever thought about
> split()?
> Something like: $myColumns = split ("|", $contents);
> </Reply>

PHP General 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