//封装 去除空格函数
public function trimall($str){
$front = array(" "," ","\t","\n","\r");
$back = array("","","","","");
return str_replace($front,$back,$str);
}
//封装 去除空格函数
public function trimall($str){
$front = array(" "," ","\t","\n","\r");
$back = array("","","","","");
return str_replace($front,$back,$str);
}
本文标题:去除字符串包含的所有空格
本文链接:https://www.haomeiwen.com/subject/lfkdextx.html
网友评论