Home > Article > Backend Development > PHP removes blank lines and blank functions in html_PHP tutorial
[php]
function DeleteHtml($str){
$str = trim($str);
$str = ereg_replace("t","",$str);
$str = ereg_replace("rn","",$str);
$str = ereg_replace("r","",$str);
$str = ereg_replace("n","",$str);
return trim($str);
}