摘要: 1. 当用普通的方法去不了空格时,可以试试下面的方法:针对全角空格:preg_replace("/(\xc2\xa0)/",' ',$str);所有空格通用:preg_replace("/(\s|\&nbsp\;| |\xc2\xa0)/",' ',$str);2. 有时候字符串已经是UTF-8编码... 阅读全文
posted @ 2016-01-16 22:11 andy_1987_chen 阅读(888) 评论(0) 推荐(0) 编辑