1. $obj=json_decode($json);
  2. //print_r($obj);
  3. foreach ( $obj as $unit ){
  4. echo $unit->name.'
    ';
  5. }
  6. ?>
复制代码
  1. $obj=json_decode($json);
  2. //print_r($obj);
  3. foreach ( $obj as $unit ){
  4. echo $unit->name.'
    ';
  5. }
  6. ?>
复制代码


09-19 05:08