PHP删除字符串中的空格和换行符究极方法
程序员文章站
2022-07-06 10:56:44
//删除空格和回车
function trimall($str){
$qian=array(" "," ","\t",&q...
//删除空格和回车 function trimall($str){ $qian=array(" "," ","\t","\n","\r"); return str_replace($qian, '', $str); }
上一篇: PHP生成器(generator)和协程的实现方法详解
下一篇: thinkcmfx 权限认证类详情