php 正则 去除字符串中的所有空格

$str= ereg_replace('[[:space:]]','',$str);

posted @ 2011-08-23 20:40  paneer  阅读(165)  评论(0)    收藏  举报