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) { $row = 0; $resultSet = array(); if (($handle = fopen($csvFile, "r")) !== FALSE) { $dataCtr = 0; $dataLabel More...

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...