php二维数组合并成字符串

是咧图

foreach ($query as $v)

{

    $v = join(",",$v); 

    $temp[] = $v;

}

$t="";

foreach($temp as $v){

$t.=$v.";";

}

$t=substr($t,0,-1);


摘自:https://www.jb51.net/article/46887.htm

你可能感兴趣的:(php二维数组合并成字符串)