Skip to content

Instantly share code, notes, and snippets.

@edbo
Created January 25, 2012 08:16
Show Gist options
  • Save edbo/1675336 to your computer and use it in GitHub Desktop.
Save edbo/1675336 to your computer and use it in GitHub Desktop.
Php snippet to output lexicon file to csv
<%php
$fp = fopen('file.csv', 'w');
foreach ($_lang as $key => $field) {
fputcsv($fp, array(
'key' => $key,
'field' => $field
));
}
fclose($fp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment