Using PHP to take the first line of a CSV file and create a MySQL Table with the data

前端 未结 4 1463
忘掉有多难
忘掉有多难 2021-01-03 15:08

I am trying to take a rather large CSV file and insert it into a MySQL database for referencing in a project. I would like to use the first line of the file to create the ta

4条回答
  •  遥遥无期
    2021-01-03 15:51

    Using regular expressions will give you a flexible solution. If you need to detect date fields then this is the way to go.

提交回复
热议问题