2015-10-24 53 views

回答

0

由於要使用正則表達式

$string="a,b,c,d" 
preg_replace('/[,]/', '', $string); 
$arr1 = str_split($string); 
1

您可以使用explode()這裏

$str="a,b,c,d"; 
$temp = explode(",", $str);