读书人

php中化除用户输入的空格和标点符号

发布时间: 2013-07-11 15:38:46 作者: rapoo

php中消除用户输入的空格和标点符号

  preg_replace("/[[:punct:]\s]/",'',$str)

读书人网 >PHP

热点推荐