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

index 9c5675e..9c51c4a 100644 (file)
@@ -43,9 +43,11 @@ class Pman_Core_ExcelToJson extends Pman_Roo
         }
         
         $rows = array();
-        
+        $header = false;
         while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
-            print_r(array_filter($n));
+            if(!array_filter($n)){
+                print_r('run');
+            }
         }
         exit;
         if (empty($cols)) {