Skip to content

Instantly share code, notes, and snippets.

View kambona's full-sized avatar

Oscar Joy kambona

View GitHub Profile
@calvinchoy
calvinchoy / PHP - excel to array helper function.php
Created June 20, 2013 08:46
PHP - excel to array helper function
<?php
/*
|--------------------------------------------------------------------------
| Excel To Array
|--------------------------------------------------------------------------
| Helper function to convert excel sheet to key value array
| Input: path to excel file, set wether excel first row are headers
| Dependencies: PHPExcel.php include needed
*/
function excelToArray($filePath, $header=true){