ExcelToJson.php
authorEdward <edward@roojs.com>
Mon, 18 Mar 2013 03:04:31 +0000 (11:04 +0800)
committerEdward <edward@roojs.com>
Mon, 18 Mar 2013 03:04:31 +0000 (11:04 +0800)
ExcelToJson.php

index 1a094a1..9c5675e 100644 (file)
@@ -45,7 +45,7 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         $rows = array();
         
         while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
-            print_r(count($n));
+            print_r(array_filter($n));
         }
         exit;
         if (empty($cols)) {