删除空格和回车,来自www.yanqing.cc 1. [代码] [PHP]代码 //来自 www.yanqing.cc//删除空格和回车function trimall($str){ $qian=array(" "," ","\t","\n","\r"); return str_replace($qian, '', $str); }
1. [代码][PHP]代码
//来自 www.yanqing.cc //删除空格和回车 function trimall($str){ $qian=array(" "," ","\t","\n","\r"); return str_replace($qian, '', $str); }