/*
Author: DirCMS Team
Date: 2011/8/5 16:21
*/
$str='dfadfas不要的内容,但该内容不确定,只是在a标签里fadsfdsfadfsdaf';
$str=preg_replace('/(.*?)(.*?)<\/a>(.*?)/i','\\1\\3',$str);
echo $str;
?>
$s = "dfadfasfadsfdsfadfsdaf";
str_replace('', '', $s);
str_replace('', '', $s);