$oldchar=array(" "," ","\t","\n","\r","\r\n",",",".",":","?","!",",","。",":","?","!","*","、");
$newchar=array("","","","","","");
$adfg = str_replace($oldchar,$newchar,$historyrol['Chinese']);
将newchar,newchar,newchar,historyrol[‘Chinese’] 里的标点去掉
本文介绍了如何使用PHP的str_replace函数批量去除字符串中的各种标点符号,包括英文和中文标点,以实现更干净的文本处理。
1万+

被折叠的 条评论
为什么被折叠?



