<?php
header("Content-type:text/html;charset=utf-8");
$arr = array(
array(
"id" => "30",
"id1" => "26",
"id2" => "金融"
),
array(
"id" => "30",
"id1" => "26",
"id2" => "信息"
),
array(
"id" => "30",
"id1" => "26",
"id2" => "车辆"
)
);
foreach($arr as $key=>$val){
echo $val["id2"].",";
}
?>
效果图