Re: Help Needed with CSV & PHP
| From: | Chris Adams | Date: | Wed, 05 Jul 2000 00:20:56 +0000 |
| Subject: | Re: Help Needed with CSV & PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4835@lists.php.net to get a copy of this message | ||
> I was going to try to switch over to using Comma Seperated Values (CSV)
> in PHP, with something like this:
> while ($dataarray[$viewcard-1] = fgetcsv($dataarray[$viewcard-1],4000,
> ":")) {
>
> but I think that I would run into the same problems.
http://gateway.digitaria.com/~chris/php/csv2table/csv2table.php
has some
generic code for displaying CSV as an HTML table. In CSV it's more or less
accepted that data containing commas should be enclosed in quotes (quotes in
data are escaped as \").