PHP Read CSV and filter by date

前端 未结 6 1952
再見小時候
再見小時候 2021-01-24 08:12

I have the following CSV

Date,Event,Description
24/01/2010,Football,Football practice for all Years.
24/01/2010,Cricket,Cricket Practice for all Years.
25/01/201         


        
6条回答
  •  失恋的感觉
    2021-01-24 08:29

    As mentioned above you do want to use fgetcsv(). Here's how you might do it (untested):

    \n";
                echo 'Event: ' . $data[0] . "

    \n\n"; } } fclose($handle); } ?>

提交回复
热议问题