将json字符串中含有非int型的数字字符全部改为int型 json_encode($data);json_encode($data, JSON_NUMERIC_CHECK);默认是加双引号,即作为字符串输出,加上参数不加双引号