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);

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

上一篇下一篇

猜你喜欢

热点阅读