1 preg_replace("/\s| |,|,/","",$_str)
PHP中取出字符串中的空格 逗号 (包括中文状态下)
PHP中取出字符串中的空格 逗号
原文:http://www.cnblogs.com/CHEUNGKAMING/p/4128421.html