$str= '<td> <a href="www.google.com">讨论 </a> </td>'; print preg_replace("/<td>.*?<\/td>/i","其它字符",$str);