Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
[A1] = 2519121152247150000000
$data = $worksheet->getCellByColumnAndRow(1, 1)->getValue()
返回$data = 2.51912115225E+21
$data = 2.51912115225E+21
但它必须是$data = 2.51912115224715E+21
$data = 2.51912115224715E+21
感谢@MarkBaker
然后检查 php.ini 中的精度设置....我怀疑它设置为 12,如果您将其更改为 14,那么您将显示所有这些数字....
来自@MarkBaker 的演示