I'm trying to create an array of values ($import_data) from a csv file that contains about 42,000 rows, each row contains an SKU. I only want to add the values to the array which DO NOT contain the string "CNV". Is there an easy way to do this?
Here is how I am adding the values from the CSV to the array:
while ( ( $line = fgetcsv($handle, 0, $post_data['import_csv_separator']) ) !== FALSE ) {
$import_data[] = $line;
}