PHP中json_decode的整型溢出的解决方法

1.正则表达式 $array = array( "id1" => 2147483647, "id2" => 2147483648 ); $json = json_encode($array); $json = preg_replace('/("id\d":)(\d{9,})/i', '${1}"${2}"', $json); $out = json_decode($json, tr
相关文章
相关标签/搜索