function ecstart_get_csv($arr_data,$fsymbol,$tsymbol){
$data_str = "" ;
$tsymbol = stripslashes($tsymbol) ;
$fsymbol = stripslashes($fsymbol) ;
foreach($arr_data as $k => $v){
$i = 0 ;
$vnum = count($v);
foreach($v as $fk => $fv){
$i = $i+1 ;
if($i != $vnum){
$data_str .= $tsymbol.$fv.$tsymbol.$fsymbol ;
}
else{
$data_str .= $tsymbol.$fv.$tsymbol."\r\n";
}
}
}
$data_str;
return $data_str;
}
沒有留言:
張貼留言