Copy code The code is as follows:
function arr2str ($arr)
{
foreach ($arr as $v)
{
$v = join(",",$v); //You can use implode to convert a one-dimensional array into a comma-connected string
$temp[] = $v ;
}
$t="";
foreach($temp as $v){
$t.="'".$v."'".",";
}
$t=substr($t,0,-1);
return $t;
}
http://www.bkjia.com/PHPjc/825229.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/825229.htmlTechArticleCopy the code The code is as follows: function arr2str ($arr) { foreach ($arr as $v) { $v = join(",",$v); //You can use implode to convert a one-dimensional array into a string connected with commas $temp[] = $v; }...