php中消除用户输入的空格和标点符号 Leave a Comment / Non-Java Language / July 7, 2013 July 7, 2013 preg_replace("/[[:punct:]\s]/",'',$str)