盆 [1] => 大鹏 ) $brand = explode(",",$row["brand"])">
当前位置:Gxlcms > PHP教程 > php实现2个数组输出问题

php实现2个数组输出问题

时间:2021-07-01 10:21:17 帮助过:20人阅读

$units = explode(",",$row["units"]);
//输出结果:Array ( [0] => 盆 [1] => 大鹏 )
$brand = explode(",",$row["brand"]);
//输出结果:Array ( [0] => 45 [1] => 56 )
?>

怎么实现:

大鹏


回复讨论(解决方案)

foreach($units as $k=>$v) {  echo "$v";}

人气教程排行