Re: Convert comma-delimited file or form into arrays
| From: | @ Edwin | Date: | Sat, 12 Oct 2002 10:47:32 +0000 |
| Subject: | Re: Convert comma-delimited file or form into arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119725@lists.php.net to get a copy of this message | ||
Hello,
You can use the fgetcsv() function (for uploaded text files).
http://www.php.net/manual/en/function.fgetcsv.php
- E
On Saturday, October 12, 2002 2:37 AM
YC Nyon wrote:
> I want to convert input data below (either from a webpage form or
> a uploadedtext file) to a set of arrays. The final step is to construct
> SQL statements to be inserted into Postgresql db (which i can do).
> Anyone got sample scripts that does the 1st part.
>
> ID, Name, Telephone
> 1, John, 34343534
> 2,Nancy, 6876767