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.
有人可以解释为什么这在 PHP5.6 和 7.1 中的工作方式不同吗?
$ php5.6 -a php > var_export(1.0); 1 $ php7.1 -a php > var_export(1.0); 1.0
看起来浮点返回值是在 5.6 中转换的,但在 7.1 中保持不变。或者 var_export 可能以不同的方式处理浮点数?