Outputing JSON to an HTML table using PHP

后端 未结 2 1410
礼貌的吻别
礼貌的吻别 2021-01-27 23:45

I using bootstrap datatables to display data from an API in a table. Here is the data:

{
  \"response_status\": {
    \"status_code\": 0,
    \"status_message\":         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-28 00:00

    Considering your data is stored in some variable say $your_data... Use json_decode($your_data,true) to get the data in array format... then loop the array

提交回复
热议问题