PHP Classes
elePHPant
Icontem

Using first field as key

Recommend this page to a friend!

      PHP Convert Excel to JSON  >  All threads  >  Using first field as key  >  (Un) Subscribe thread alerts  
Subject:Using first field as key
Summary:Using first field as key
Messages:2
Author:edgar ochieng
Date:2015-03-19 10:20:05
 

 


  1. Using first field as key   Reply   Report abuse  
edgar ochieng - 2015-03-19 10:20:05
Hi,

This is quite a usefull class you have built, thanks alot of the good job.

I'm trying to read your code to see how instead of using cell id as key if there's any way I can instead use the first row values as keys.

Would you mind pointing me towards the right direction?

Kind regards,
Marvin

  2. Re: Using first field as key   Reply   Report abuse  
Karl Holz - 2016-07-02 20:28:48 - In reply to message 1 from edgar ochieng
Hello Marvin,

Sorry for the late reply, I'm currently working on an up date for this class's code, and I have already added a configuration file/configuration generator so you can map a custom name to an excel field that has already been entered. you'll need to edit the ini file after it's been written, but it's simple enough to edit with vi(m) or notepad.exe