[PHP] Convert comma-delimited file or form into arrays

2002-10-12 Thread YC Nyon
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

Re: [PHP] Convert comma-delimited file or form into arrays

2002-10-12 Thread @ Edwin
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