php实现2个数组输出有关问题
时间:2021-07-01 10:21:17
帮助过:13人阅读
php实现2个数组输出问题
$units = explode(",",$row["units"]);
//输出结果:Array ( [0] => 盆 [1] => 大鹏 )
$brand = explode(",",$row["brand"]);
//输出结果:Array ( [0] => 45 [1] => 56 )
?>
怎么实现:
盆
大鹏
------解决思路----------------------本帖最后由 xuzuning 于 2014-12-17 10:52:41 编辑
foreach($units as $k=>$v) {
echo "$v";
}