1、去除两边的空格
trim($arr)
2、正则匹配去除所有的空格
preg_replace('# #','',$goodid)
posted on 2016-12-06 19:22 Mr.风的影子 阅读(57147) 评论(3) 编辑 收藏 举报