如何解决phpspreadsheet 检索单元格值作为无格式文本
收集必要的行到数组中 ->toArray() 不安全地尝试从单元格中获取未格式化的文本值。做了以下事情:
$reader->setReadDataOnly(true);
和
->rangetoArray(
'A1:Q11',// The worksheet range that we want to retrieve
'',// Value that should be returned for empty cells
FALSE,// Should formulas be calculated (the equivalent of getCalculatedValue() for each cell)
FALSE,// Should values be formatted (the equivalent of getFormattedValue() for each cell)
TRUE // Should the array be indexed by cell row and cell column
);
我得到 777,7 为 777.7,但 777,77 为 777,77
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。