您的位置:首页 - 教程 - PHP - 正文
php删除字符串中的所有空格
function trimall($str)//删除空格
{
    $qian=array(" "," ","\t","\n","\r");$hou=array("","","","","");
    return str_replace($qian,$hou,$str);    
}

  


评论: