How does PHP iterate through this data?

Source: Internet
Author: User
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 "}
]


This data I do not know what form, how to list the data for each row there are 8 rows of data, I want to output 8 rows in the form of a front-end table, and then use variables to read each row of data such as:
$rs [Bucket_name] can get wulinag09
$rs [status] can get 0
$rs [Cdatetime] can get 1385619473

In turn, the example pushes


Reply to discussion (solution)

JSON data format, meaning that the body value is the entire back of the content, the complete code is as follows

 
 
  $value) {?> 
    $var) {echo " 
    ";}? > 
   
Bucket_name Status Cdatetime Used_capacity Total_capacity Region
$var

Results:

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.