function GenHtml($string,$tag){ preg_match("!<$tag>(.*?)</$tag>!si",$string,$return); if($return){ return $return['1']; }else{ return FALSE; } }