Re: array looping
| From: | Micah Montoy | Date: | Tue, 12 Aug 2003 23:18:39 +0000 |
| Subject: | Re: array looping | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159361@lists.php.net to get a copy of this message | ||
No, one long file. I can separate it out any way though. Any ideas?
"Chris W. Parker" <cparker@swatgear.com> wrote in message
news:001BD19C96E6E64E8750D72C2EA0ECEE1AE1A9@ati-ex-01.ati.local...
Micah Montoy <mailto:montmica@isu.edu>
on Tuesday, August 12, 2003 3:35 PM said:
> I have this text file that I pull in and I need to transverse through
> the file and assign each value in the file into an array.
Hehe... you mean traverse.
Transverse:
1 : acting, lying, or being across : set crosswise
2 : made at right angles to the anterior-posterior axis of the body <a
transverse section>
> The text in the file is separated by a comma.
This is called "delimit".
You say the file looks a bit like "and,not,it,i,a,c,nope". Are there any
new line characters (\n) in the file or is it just one really long line?
If there ARE newlines in the file does it look like this:
a,b,c,d,e,f,g,
h,i,j,k,l,m,n,
or this:
a,b,c,d,e,f,g
h,i,j,k,l,m,n
??
(notice there is no comma at the end of the line in the second example)
Chris.