Created
January 25, 2012 08:16
-
-
Save edbo/1675336 to your computer and use it in GitHub Desktop.
Php snippet to output lexicon file to csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%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