PHP把空格、换行符、中文逗号等替换成英文逗号的正则表达式

$test=$_POST["test"];
$test= preg_replace("/(\n)|(\s)|(\t)|(\')|(')|(,)/" ,',' ,$test); 
$test = explode("," ,$test);

猜你喜欢

转载自www.cnblogs.com/5aiQ/p/9834819.html