时间:2021-07-01 10:21:17 帮助过:8人阅读
- function replace($str)
- {
- static $color=0;
- $color+=50;
- return "<font style="\"color:rgb(255,".$color.",33)\"">".$str."</font>";
- }
- 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.'<br>';
- for($i=2;$i<count($array);$i++) {="" $pos="strpos($string,$array[$i],$pos);" $string="substr_replace($string,replace($array[$i]),$pos,strlen($array[$i]));" echo="" $string.'<br="">';
- }
- } //end if(count($array)>1)
- print_r($array);
- }</count($array);$i++)>