日期:2014-05-17  浏览次数:20463 次

php中消除用户输入的空格和标点符号
  preg_replace("/[[:punct:]\s]/",'',$str)