Share this post! | Vote this! |
|
In this tutorial you will learn a simple way to parse CSV files using
PHP and output the text of the fields you need. This tutorial is not
going to go into what you can do with the data once you get it from the
CSV as the possibilities are endless. We will simply show you how to get
the data into an array in PHP.
First you can download our test.csv file here.
Now we are going to open the file for reading using the fopen() function in PHP. Will will specify the location of the file and also the mode in which we want to open it. In this case we are using the “R” mode which stands for read. Other possible uses of this function can be found on the manual page for fopen(). more...
First you can download our test.csv file here.
Now we are going to open the file for reading using the fopen() function in PHP. Will will specify the location of the file and also the mode in which we want to open it. In this case we are using the “R” mode which stands for read. Other possible uses of this function can be found on the manual page for fopen(). more...
0 comments:
Post a Comment