function arr_to_str($arr) {
$t ='' ;
foreach ($arr as $v) {
$v = join(",",$v); // 可以用implode將一維數組轉換為用逗號連接的字符串,join是別名
$temp[] = $v;
}
foreach ($temp as $v) {
$t.=$v.",";
}
$t = substr($t, 0, -1); // 利用字符串截取函數消除最后一個逗號
return $t;
}
