Small PHP Script/Code to import CSV file into two arrays
- or -
Post a project like this1533
€50(approx. $54)
- Posted:
- Proposals: 7
- Remote
- #2304828
- Awarded
18 years expert in PHP, MySQL, HTML, CSS, JavaScript, jQuery, Ajax, Bootstrap, Chrome Extension, VB, VBA, AutIT Programming & Website Data Scraping
1875661194316232476430461125040824710242559974




Description
Experience Level: Intermediate
Estimated project duration: 1 day or less
I need a PHP Script that imports a CSV file with 2 columns and header row into 2 arrays.
The csv file is delimited with semicolon, example:
This is how the CSV looks like:
"City";"Alternative"
"Aachen";"Köln"
"Augsburg";"München"
"Bad Gögging";"Bad Gögging"
"Berlin";"Berlin"
"Bielefeld";"Köln"
"Bochum";"Köln"
I need 2 arrays with the values from the CSV file:
Array1 named "City" with the data from first column.
and Array1 named "Alternative" with data from second column
The csv file is delimited with semicolon, example:
This is how the CSV looks like:
"City";"Alternative"
"Aachen";"Köln"
"Augsburg";"München"
"Bad Gögging";"Bad Gögging"
"Berlin";"Berlin"
"Bielefeld";"Köln"
"Bochum";"Köln"
I need 2 arrays with the values from the CSV file:
Array1 named "City" with the data from first column.
and Array1 named "Alternative" with data from second column

Eduard K.
100% (12)Projects Completed
11
Freelancers worked with
9
Projects awarded
53%
Last project
5 Jul 2021
Spain
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies