php二维数组合并成字符串
2020-06-09 本文已影响0人
可乐_加冰_
是咧图
foreach ($query as $v)
{
$v = join(",",$v);
$temp[] = $v;
}
$t="";
foreach($temp as $v){
$t.=$v.";";
}
$t=substr($t,0,-1);
foreach ($query as $v)
{
$v = join(",",$v);
$temp[] = $v;
}
$t="";
foreach($temp as $v){
$t.=$v.";";
}
$t=substr($t,0,-1);