Shortest PHP code to convert CSV to associative array
There are tons of code snippets out there to convert a CSV file to an associative array, where the first line contains the column headings for the rest of the file. Most of them were really long, but I came up with what I think is the shortest way to accomplish this in PHP.
One thing for you Mac users. You may have to include this line at the top, to correct PHP's detection of line endings:
If you have a shorter way, let's see it!