折雨的天空
php初始JSON中的数字字符串
2016-12-20 我好笨


直接使用Json_decode会把数字字符串转换成浮点数







要转换成字符串,第四个参数指定为:JSON_BIGINT_AS_STRING








手册上这样说:Bitmask of JSON decode options. Currently only JSON_BIGINT_AS_STRING is supported (default is to cast large integers as floats) 

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容