ホームページ >バックエンド開発 >PHPチュートリアル >PHPループでこのデータを読み取る方法
php怎么循環环读取该数据?
本文:[
{"バケット名":"wulinag09","ステータス":"0","cdatetime":"1385619473","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"バケット名":"wulinag08","ステータス":"0","cdatetime":"1385619360","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"バケット名":"wulinag07","ステータス":"0","cdatetime":"1385619169","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"バケット名":"wulinag06","ステータス":"0","cdatetime":"1385618406","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"バケット名":"wulinag05","ステータス":"0","cdatetime":"1385618247","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"バケット名":"wulinag04","ステータス":"0","cdatetime":"1385618074","used_capacity":"0","total_capacity":"0","region":"beijing"},
{"バケット名":"wulinag03","ステータス":"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[ステータス] 能得 0
$rs[cdatetime] 能得 1385619473
依次例推