diff --git a/README.md b/README.md index b5c5505..d3328d9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SimpleXLSXGen class 0.9.10 (Official) +# SimpleXLSXGen class 0.9.11 (Official) [](https://www.patreon.com/shuchkin) [](https://github.com/shuchkin/simplexlsxgen/blob/master/license.md) [](https://github.com/shuchkin/simplexlsxgen/stargazers) [](https://github.com/shuchkin/simplexlsxgen/network) [](https://github.com/shuchkin/simplexlsxgen/issues) Export data to Excel XLSX file. PHP XLSX generator. No external tools and libraries.
@@ -49,4 +49,5 @@ SimpleXLSXGen::fromArray( $data )->saveAs('datatypes.xlsx'); ![XLSX screenshot](datatypes.png) ## History +v0.9.11 (2020-05-21) removed XML unimportant attributes v0.9.10 (2020-05-20) initial relese \ No newline at end of file diff --git a/src/SimpleXLSXGen.php b/src/SimpleXLSXGen.php index 5856b35..105d7e8 100644 --- a/src/SimpleXLSXGen.php +++ b/src/SimpleXLSXGen.php @@ -52,9 +52,9 @@ class SimpleXLSXGen { {STRINGS}', 'xl/styles.xml' => ' - + - + @@ -62,19 +62,14 @@ class SimpleXLSXGen { - + ', 'xl/workbook.xml' => ' - - - - - ' ]; // @@ -176,7 +171,7 @@ class SimpleXLSXGen { $CUR_ROW++; $row = ''; $CUR_COL = 0; - foreach( $r as $k => $v ) { + foreach( $r as $v ) { $CUR_COL++; if ( !isset($COL[ $CUR_COL ])) { $COL[ $CUR_COL ] = 0; @@ -231,12 +226,12 @@ class SimpleXLSXGen { $ROWS[] = $row . "\r\n"; } foreach ( $COL as $k => $max ) { - $COLS[] = ''; +// $COLS[] = ''; + $COLS[] = ''; } $REF = 'A1:'.$this->_num2name(count($COLS)).$CUR_ROW; } else { -// $COLS[] = ''; - $COLS[] = ''; + $COLS[] = ''; $ROWS[] = '0'; $REF = 'A1:A1'; $SI[] = 'No Data';