Skip to content

Instantly share code, notes, and snippets.

View espinozaulises's full-sized avatar
🏠
Working from home

Ulises Vázquez Espinoza espinozaulises

🏠
Working from home
View GitHub Profile
@espinozaulises
espinozaulises / csv_to_array.php
Created September 20, 2012 15:07 — forked from jaywilliams/csv_to_array.php
Convert a comma separated file into an associated array.
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array