<?php
/**
功能:替换中文字符串
@$string传入的要替换的字符串
@$replacement 要将中文空格替换成的字符串,默认替换成""
@return 替换以后的字符串
*/
function rzs($string,$replacement="")
{
$pattern = "/style.*\\\"/i";
return preg_replace($pattern, $replacement, $string);
}
$a = "<table style=\"BORDER-RIGHT: medium none; mso-border-left-alt: 1.5pt;\" border=1 width=100>\r\n<table style=\"BORDER-RIGHT: medium none; mso-border-left-alt: 1.5pt;\" border=1 width=100>";
$c =  rzs($a,"");
//exit;
//exit;
?>
<TEXTAREA NAME="" ROWS="6" COLS="70"><?php echo $a;?></TEXTAREA>
<TEXTAREA NAME="" ROWS="6" COLS="70"><?php echo $c;?></TEXTAREA>