Depends a lot on what exactly you want to do. PHP has the [man]fgetcsv/man function which makes it pretty painless to read/parse a CSV file. Conversely, MySQL as built-in abilities to read CSV files and process them, too, so you might take that approach instead.