json_decode returns string type instead of object

后端 未结 3 2056
情歌与酒
情歌与酒 2021-01-02 10:49

I\'m passing a JSON-encoded string to json_decode() and am expecting its output to be an object type, but am getting a string type instead. How can I return an

3条回答
  •  無奈伤痛
    2021-01-02 11:30

    var_dump(json_decode($json, true));
    

    http://hk.php.net/manual/en/function.json-decode.php

提交回复
热议问题