php json_decode int类型溢出 变float类型

php在  json_decode  时候可能出现json 数据中 int 类型 过长,转为数组变成float 类型

$post = json_decode($content,true);
 
float 2.0423412312312E+16

可改成:

$post = json_decode($content,true,512,JSON_BIGINT_AS_STRING);

  参考原文:https://www.cnblogs.com/lclclouds/p/11327259.html

php json_decode int类型溢出 变float类型

上一篇:vue上传图片编辑


下一篇:深入了解PHP的生成器