Convert The CSV Data to Associative Array

PHP CSV Array

 Most of the time we have some csv data of any no of column and we want to convert that in an associative array, so that can be utilize anywhere we need. This function will help you for the same. function csvToAssocArray($csvFile) { $row = 0; $resultSet = array(); if (($handle = fopen($csvFile, "r")) !== FALSE) { $dataCtr = 0; $dataLabel More...

by Jai Mishra | Published 4 years ago
PHP CSV Array
By Jai Mishra On Thursday, April 2nd, 2015
0 Comments

Convert The CSV Data to Associative Array

 Most of the time we have some csv data of any no of column and we want to convert that in an associative array, so that can be utilize anywhere we need. This function will help you for the same. function csvToAssocArray($csvFile) More...