PHP删除字符串中的空格和换行符究极方法
程序员文章站
2022-03-23 21:02:51
//删除空格和回车
function trimall($str){
$qian=array(" "," ","\t",&q...
//删除空格和回车 function trimall($str){ $qian=array(" "," ","\t","\n","\r"); return str_replace($qian, '', $str); }
上一篇: Linux系统之TroubleShooting(启动故障排除)
下一篇: PDO一次查询一行数据