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
相關文章
相關標籤/搜索