时间:2021-07-01 10:21:17 帮助过:14人阅读
$s = '1,9,admin,你是我爱人,我是你爱人,是吗,20141109,769';//以下任何一句都可以echo str_replace(',', ',', $s);echo strtr($s, array(',' => ','));echo join(',', explode(',', $s));
$s = '1,9,admin,你是我爱人,我是你爱人,是吗,20141109,769';//以下任何一句都可以echo str_replace(',', ',', $s);echo strtr($s, array(',' => ','));echo join(',', explode(',', $s));
嗯,是中文之间
$s = '1,9,admin,你是我爱人,我是你爱人,是吗,20141109,769';echo preg_replace('/([\x80-\xff]),([\x80-\xff])/', '$1,$2', $s);