php 删除空格 和 回车
//删除空格 和 回车 function trimall($str){ $oldchar=array(""," ","\t","\n","\r"); $newchar=array("","","","",""); return str_replace($oldchar,$newchar,$str); }
//删除空格 和 回车 function trimall($str){ $oldchar=array(""," ","\t","\n","\r"); $newchar=array("","","","",""); return str_replace($oldchar,$newchar,$str); }