Reputation: 49
I'm using fgetcsv to open some data. I can display the current row but how do you then display certain data about the next row within the current row?
if (($handle = fopen("data.csv", "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
echo $data[2];
}
Upvotes: 1
Views: 563