Skip to content

Instantly share code, notes, and snippets.

View Kostanos's full-sized avatar

Kostya Kostyushko Kostanos

View GitHub Profile
#!/usr/bin/php
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
/*
* Using of script in command line:
* ./csv-to-json.php csv.file.name.or.url > json.file.name