Maison > Article > développement back-end > preg_replace() 乱码,该怎么处理
preg_replace() 乱码
<br />$search_input=$_REQUEST["search_input"];<br />$search_input = preg_replace('/\s(?=\s)/','', $search_input);<br />$search_array=explode(" ",$search_input);<br /><br /> if (is_array($search_array)){<br /> $search_array=implode("|",$search_array);<br /> }<br /> $clientNumber=preg_replace("/($search_array)/i","<font style='color:#aa1234'>\\1</font>",$clientNumber);<br /> $clientTime=preg_replace("/($search_array)/i","<font style='color:#aa1234'>\\1</font>",$clientTime);<br /><br /><br /><br />echo "<div id='page_list_$i' class='page_default' url='./client_list.php?page=$i&search_list=$search_list&search_input=$search_input'>$i</div>";<br />