php如何循环读取该数据
程序员文章站
2024-02-07 23:15:28
...
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
依次例推
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全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
- 最新文章
- 热门排行
上一篇: 用PHP实现冒泡排序(从小到大)
推荐阅读
-
php如何循环读取该数据
-
laravel 里面若数据表里面存在该user_id则更新该id下的其它字段,如果不存在则新建一条记录,数据库操作如何实现?
-
PHP使用PDO从mysql读取大量数据处理详解
-
PHP读取mssql,json数据中文乱码,_PHP教程
-
select-php如何读取下拉菜单选中数据
-
想把原来C/S系统转为PHP的B/S结构,问能Web页面与PHP代码分离编程吗?该如何解决
-
PHP读取word,还要读取里面的表格样式,该如何解决
-
C#使用FileStream循环读取大文件数据的方法示例
-
如何把js用的json数据,用php来还原。
-
php透过thrift读取hbase数据之scanner学习
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论