2017-03-11

PHP 去除字符串中的空格、换行、制表符函数:


function trimall($str){

$qian=array(" "," ","\t","\n","\r");

return str_replace($qian, '', $str);

}

你可能感兴趣的:(2017-03-11)