How to access JSON decoded array in PHP

后端 未结 6 1124
梦谈多话
梦谈多话 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:39

    As you're passing true as the second parameter to json_decode, in the above example you can retrieve data doing something similar to:

    
    

提交回复
热议问题