PHP去除Html所有标签、空格以及空白

functioncutstr_html($string,$sublen){

$string=strip_tags($string);

$string= trim($string);

$string=ereg_replace("\t","",$string);

$string=ereg_replace("\r\n","",$string);

$string=ereg_replace("\r","",$string);

$string=ereg_replace("\n","",$string);

$string=ereg_replace(" ","",$string);

returntrim($string);

}


原文:http://blog.csdn.net/helin916012530/article/details/42522731

你可能感兴趣的:(PHP去除Html所有标签、空格以及空白)