问题描述
收集必要的行到数组中 ->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 (将#修改为@)