From af53c754c332f64c0fa968ddf625acce337e3d16 Mon Sep 17 00:00:00 2001 From: Sergey Shuchkin Date: Mon, 9 Jan 2023 11:51:48 +0600 Subject: [PATCH] 1.3.10 --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3deb84c..5f69876 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,21 @@ SimpleXLSXGen::fromArray($data) ``` ![XLSX screenshot](styles.png) +### RAW Strings +Prefix #0 cell value (use double quotes). +```php +$PushkinDOB = '1799-07-06'; +$data = [ + ['Datetime as raw string', "\0".'2023-01-09 11:16:34'], + ['Date as raw string', "\0".$PushkinDOB], + ['Disable type detection', "\0".'+12345'], + ['Insert greater/less them simbols', "\0".'20- short term: <6 month'], + +]; +SimpleXLSXGen::fromArray($data) + ->saveAs('test_rawstrings.xlsx'); +``` + ### More examples ```php // Fluid interface, output to browser for download