^0{1,}","",$fnum);
if($fnum=="") $fnum=0;
return $fnum;
}
去除HTML标记
function text2Html($txt){
$txt = str_replace(" "," ",$txt);
$txt = str_replace("<","<",$txt);
$txt = str_replace(">",">",$txt);
$txt = preg_replace("/[\r\n]{1,}/isU","<br/>\r\n",$txt);
return $txt;
}清除HTML标记
function clearHtml($str){
$str = str_replace('<','<',$str);
$str = str_replace('>','>',$str);
return $str;
}相对路径转化成绝对路径
function relative2Absolute($content, $feed_url) {
preg_match('/(http 关键词:php中常用的采集函数的总结(附代码)