diff --git a/README.md b/README.md index 0ca4201..3866efc 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ $data = [ SimpleXLSXGen::fromArray( $data ) ->setDefaultFont( 'Courier New' ) ->setDefaultFontSize( 14 ) - ->setColWidth(1, 35) + ->setColWidth(1, 35) // 1 - num column, 35 - size in chars ->mergeCells('A20:B20') ->saveAs('styles_and_tags.xlsx'); ``` @@ -104,6 +104,54 @@ $xlsx->addSheet( $books2, 'Stephen King catalog'); $xlsx->downloadAs('books_2021.xlsx'); exit(); ``` +### JS array to Excel (AJAX) +```php +downloadAs('file.xlsx'); + return; +} +?> + + + JS array to Excel + + + + + + +``` ## Debug ```php