Get value from JSON array in PHP

前端 未结 4 1350
名媛妹妹
名媛妹妹 2020-11-28 15:10

I\'m trying to get the value from this following JSON array in a PHP variable.

This is a var_dump of the array:

array(3) {
  [\"id\"]=>
  string(2         


        
4条回答
  •  我在风中等你
    2020-11-28 15:38

    You can decode the JSON via the json_decode function:

    $json = json_decode($data[0]['json']);
    

    Then, you'll have arrays (in the same structure) with your data.

提交回复
热议问题