作者:磊仔2502898265 | 来源:互联网 | 2018-03-19 03:48
functionreplace($str){static$color0;$color+50;return"<fontstyle"color:rgb(255,".$color.",33)">".$str."<font>&q
function replace($str)
{
static $color=0;
$color+=50;
return "".$str."";
}
if( @ereg($match,$str,$array) )
{
if(count($array)>1)
{
$string=$str;
$pos=strpos($string,$array[1]);
$string=substr_replace($string,replace($array[1]),$pos,strlen($array[1]));
$pos=$pos+strlen(replace($array[1]));
echo $string.'
';
for($i=2;$i';
}
} //end if(count($array)>1)
print_r($array);
}