Access JSON object name in PHP

后端 未结 4 1798
孤城傲影
孤城傲影 2020-12-06 06:33

I have the following JSON:

{
  \"nickname\": \"xadoc\",
  \"level\": 4,
  \"loc\": \"Tulsa, OK, USA\",
  \"score\": 122597,
  \"money\": 29412.5,
  \"street         


        
4条回答
  •  一生所求
    2020-12-06 07:12

    I can´t try it right now, but if you do a:

    var_dump($obj2);
    

    you should be able to see exactly how to access your information.

提交回复
热议问题