I have a CSV file and I read data from CSV file then I want to skip first line of CSV file.Which\'ll contain any header. I am using this code.
while (($emapDa
Before beginning the while loop, just get the first line and do nothing with it. This way the logic to test if it's the first line is not needed.
fgetcsv($file, 10000, ","); while (($emapData = fgetcsv($file, 10000, ",")) !== FALSE) { //.... }