Skip to content

Instantly share code, notes, and snippets.

View melonlogic's full-sized avatar

melonlogic melonlogic

View GitHub Profile
<?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