How to access JSON decoded array in PHP

后端 未结 6 1098
梦谈多话
梦谈多话 2020-12-01 14:23

I returned an array of JSON data type from javascript to PHP, I used json_decode($data, true) to convert it to an associa

6条回答
  •  离开以前
    2020-12-01 14:40

    $data = json_decode(...);
    $firstId = $data[0]["id"];
    $secondSeatNo = $data[1]["seat_no"];
    

    Just like this :)

提交回复
热议问题