thephpleague / csv

CSV data manipulation made easy in PHP
https://csv.thephpleague.com
MIT License
3.34k stars 336 forks source link

Skip row with certain value in field #455

Closed tebeso closed 2 years ago

tebeso commented 2 years ago

Is it somehow possible to skip a row if it contains a certain value in a specific field? I have a huge CSV and it contains a field that is either 0 or 1. Most of the rows have a 0 and i dont need them. Looking to make a performance improvement here as I currently have to go over each row with a foreach and that takes a lot of time to check that value.

nyamsprod commented 2 years ago

@tebeso thanks for using the package. Did you read the documentation ? the part about Statement it should resolve your issue.