当前位置:编程学习 > php >>

PHP去掉html中的空行、空白函数

[php] 
function DeleteHtml($str){ 
                    $str = trim($str); 
                    $str = ereg_replace("\t","",$str); 
                    $str = ereg_replace("\r\n","",$str); 
                    $str = ereg_replace("\r","",$str); 
                    $str = ereg_replace("\n","",$str); 
                    return trim($str); 
                } 
补充:Web开发 , php ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,