KeyArray=$KeyArray; $this->HtmlString=$String; $this->ArrayCount=count($KeyArray); } function KeyOrderBy() { for($i=0;$i<$this->ArrayCount-1;$i++) { for($j=$i+1;$j<$this->ArrayCount;$j++) { $TempArray=array(); if(strlen($this->KeyArray[$i]["Key"])KeyArray[$j]["Key"])) { $TempArray=$this->KeyArray[$i]; $this->KeyArray[$i]=$this->KeyArray[$j]; $this->KeyArray[$j]=$TempArray; } } } } function Replaces() { for($i=0;$i<$this->ArrayCount;$i++) { if((integer)$this->KeyArray[$i]['ReplaceNumber'] != 0 ){ str_replace($this->KeyArray[$i]["Key"],"/*".md5($this->KeyArray[$i]["Key"])."*/",$this->HtmlString,$num); if((integer)$this->KeyArray[$i]['ReplaceNumber']>$num) { $this->KeyArray[$i]['ReplaceNumber']=$num; $this->HtmlString=str_replace($this->KeyArray[$i]["Key"],"/*".md5($this->KeyArray[$i]["Key"])."*/",$this->HtmlString); continue; } $ListNumber=array(); $ListNumber=$this->KeyStrpos($i); $RegArray=array(); if(count($ListNumber)<1) continue; $n=0; while($n<(integer)$this->KeyArray[$i]["ReplaceNumber"]) { $g=0; $x=rand(0,count($ListNumber)-1); for($xcn=0;$xcn<=$n;$xcn++) { if($RegArray[$xcn]==$ListNumber[$x]) { $g=1; } } if($g==0) { $RegArray[$n]=$ListNumber[$x]; $n++; } } for($c=0;$c$RegArray[$jx]) { $TempArray=$RegArray[$c]; $RegArray[$c]=$RegArray[$jx]; $RegArray[$jx]=$TempArray; } } } for($c=0;$cStrposKey($this->KeyArray[$i]["Key"],$RegArray[$c],$c); } $this->HtmlString=str_replace("/&".md5($this->KeyArray[$i]["Key"])."&/",$this->KeyArray[$i]["Key"],$this->HtmlString); } else { $this->HtmlString=str_replace($this->KeyArray[$i]["Key"],"/*".md5($this->KeyArray[$i]["Key"])."*/",$this->HtmlString); } } for($i=0;$i<$this->ArrayCount;$i++) { $this->HtmlString=str_replace("/*".md5($this->KeyArray[$i]["Key"])."*/",$this->KeyArray[$i]["Href"],$this->HtmlString); } } function StrposKey($Key,$StrNumber,$n){ $this->HtmlString=substr_replace($this->HtmlString, "/*".md5($Key)."*/", $StrNumber, 36); } function KeyStrpos($KeyId) { $StrListArray=array(); $StrNumberss=strpos($this->HtmlString, $this->KeyArray[$KeyId]["Key"]); $xf=0; while(!($StrNumberss===false)) { $StrListArray[$xf]=$StrNumberss; $this->HtmlString=substr_replace($this->HtmlString,"/&".md5($this->KeyArray[$KeyId]["Key"])."&/",$StrNumberss, strlen($this->KeyArray[$KeyId]["Key"])); $StrNumberss=strpos($this->HtmlString, $this->KeyArray[$KeyId]["Key"]); $xf++; } return $StrListArray; } } ?> 装修必须掌握的水电、泥工和涂料的装修施工细节-装修百科-品牌净化工程公司
宏飞装饰:将风水文化引入商业、办公设计装修
当前位置:首页 » 装修百科 » 装修必须掌握的水电、泥工和涂料的装修施工细节

装修必须掌握的水电、泥工和涂料的装修施工细节

文章出处:兴义厂房装修责任编辑:宏飞装饰人气:330发表时间:2020-07-04 15:20