PHP Classes

getting the datatype?

Recommend this page to a friend!

      SimpleXLSX  >  All threads  >  getting the datatype?  >  (Un) Subscribe thread alerts  
Subject:getting the datatype?
Summary:get a cell's datatype
Messages:3
Author:Tobbi
Date:2012-09-28 16:38:34
Update:2012-10-04 15:16:55
 

  1. getting the datatype?   Reply   Report abuse  
Picture of Tobbi Tobbi - 2012-09-28 16:38:34
First of all, I must admit your class is great: Lightweight, easy to use, it's really nice, great work!! However, in my case, I must do special treatment depending on the type of data present in the cells (Strings, numeric and so on).

At the moment, I use:

worksheet($indFeuille)->sheetData->row[$li]->c[$col]['t']

But I discovered it's a bit dangerous since cells that are completely empty sort of "don't exist" and it throws my indexes out of synch from one line to another. Is there a better way of doing things?

  2. Re: getting the datatype?   Reply   Report abuse  
Picture of Sergey Shuchkin Sergey Shuchkin - 2012-10-04 03:56:03 - In reply to message 1 from Tobbi
try 0.6.2 version

see $xlsx->rowsEx()

  3. Re: getting the datatype?   Reply   Report abuse  
Picture of Tobbi Tobbi - 2012-10-04 15:16:55 - In reply to message 2 from Sergey Shuchkin
Thanks a lot :)