首頁 > 後端開發 > php教程 > php如何循环读取该数据

php如何循环读取该数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-13 12:32:30
原創
806 人瀏覽過

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.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
javascript - js正規符合特定字串
來自於 1970-01-01 08:00:00
0
0
0
為什麼說非物件呼叫成員函數fetch()
來自於 1970-01-01 08:00:00
0
0
0
資料庫設定檔必須要用二維數組
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板