Echo a very large number

后端 未结 5 2279
抹茶落季
抹茶落季 2021-01-01 21:30

I have a unusual problem which I have no idea how to solve.

I have a JSON file, where a application id is stored, namely the following:

\"app_id\": \         


        
5条回答
  •  我在风中等你
    2021-01-01 22:19

    It looks like json_decode has an option to treat big integers as strings.

    json_decode($json, false, 512, JSON_BIGINT_AS_STRING)
    

提交回复
热议问题