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
You can spend lot of time trying to traverse each line in csv file, or can try something like that:
$command = sprintf("grep '%s' -Er %s", date('d/m/Y'), $this->db); $result = `$command`;
This example really works and it is really fast!