fast-excel
fast-excel copied to clipboard
Allow users to export both strings and numbers
(this issue is a work in progress)
There are several issues where users ask for numbers to be considered as strings and, on other hand, users asking for numbers to be preserved. This should be easily configurable and understandable.
Source:
- https://github.com/rap2hpoutre/fast-excel/pull/166
- https://github.com/rap2hpoutre/fast-excel/issues/188
- https://github.com/rap2hpoutre/fast-excel/issues/183
- https://github.com/rap2hpoutre/fast-excel/issues/176
Although, it seems working for most of the column except for the price column. I have code like:
if($impact != ''){
$formatter = new \NumberFormatter('en_US', \NumberFormatter::CURRENCY);
$impact = $formatter->formatCurrency((double)$impact, 'USD');
}
Or, am I missing something here?