Skip to content

Instantly share code, notes, and snippets.

@iamnnort
Created December 20, 2016 10:19
Show Gist options
  • Save iamnnort/1335c1d5b46650d53f01ccad01b95d73 to your computer and use it in GitHub Desktop.
Save iamnnort/1335c1d5b46650d53f01ccad01b95d73 to your computer and use it in GitHub Desktop.
$csv_strings = array_map('str_getcsv', file('./cut_2c.csv'));
$csv_string = array();
foreach ($csv_strings as $csv) {
if($csv['1']){
array_push($csv_string, $csv['1']);
}
}
$csv_line = implode($csv_string, ',');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment