欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php如何循环读取该数据

程序员文章站 2024-01-29 21:23:10
...
php怎么循环读取该数据?
Body:[
{"bucket_name":"wulinag09","status":"0","cdatetime":"1385619473","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag08","status":"0","cdatetime":"1385619360","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag07","status":"0","cdatetime":"1385619169","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag06","status":"0","cdatetime":"1385618406","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag05","status":"0","cdatetime":"1385618247","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag04","status":"0","cdatetime":"1385618074","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag03","status":"0","cdatetime":"1385435678","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"bucket_name":"wulinag02","status":"0","cdatetime":"1385435395","used_capacity":"0","total_capacity":"0","region":"beijing"}
]


这数据我不知道是什么形式,如何列出每行的数据 这里有8行数据,我想用前端 表格的形式输出8行,然后用变量 读取每行的数据 如:
$rs[bucket_name] 能得到 wulinag09
$rs[status] 能得到 0
$rs[cdatetime] 能得到 1385619473

依次例推

网友评论

文明上网理性发言,请遵守 新闻评论服务协议

我要评论
  • php如何循环读取该数据
  • 专题推荐

    作者信息
    php如何循环读取该数据

    认证0级讲师

    推荐视频教程
  • php如何循环读取该数据javascript初级视频教程
  • php如何循环读取该数据jquery 基础视频教程
  • 视频教程分类