最近的文章列表

php实现过滤中文标点符号及过滤英文标点符号的示例代码

php 过滤英文标点符号 过滤中文标点符号 代码

代码如下:
function filter_mark($text){ 
if(trim($text)=='')return '';
$text=preg_replace("/[[:punct:]\s]/",' ',$text);
2014/8/18 Comments: