Re: Parsing text file and dividing column into three...PLEASE help :)

From: Date: Thu, 20 Sep 2001 16:48:05 +0000
Subject: Re: Parsing text file and dividing column into three...PLEASE help :)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-68017@lists.php.net to get a copy of this message
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? Jeff ----- Original Message ----- From: "* R&zE:" <renze@datalink.nl> To: "Jeff Lewis" <jeff@hyrum.net>; <php-general@lists.php.net> 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>

« previous php.general (#68017) next »