php json_decode int类型溢出 变float类型

于 2024-04-27 发布 阅读量87  

$post = json_decode($content,true);
 
float 2.0423412312312E+16
改成:
$post = json_decode($content,true,512,JSON_BIGINT_AS_STRING);