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