Re: getting fields out of a csv file
| From: | David Robley | Date: | Tue, 18 Jul 2000 03:35:31 +0000 |
| Subject: | Re: getting fields out of a csv file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7016@lists.php.net to get a copy of this message | ||
On 17 Jul, Chris Murtland wrote:
> I am trying to get individual fields out of a .csv file I am reading in. I
> can see how to print out the data on each line, using fgetcsv, but how do I
> isolate each field?
>
> Thanks,
> Chris
>
One solution might be to explode() the line into an array, then access
the array elements which will be the field values.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA