復制代碼 代碼如下:
function unhtml($content){
$content=htmlspecialchars($content);
$content=str_replace(chr(13),"<br>",$content);
$content=str_replace(chr(32),"<br>",$content);
$content=str_replace("[_[","<",$content);
$content=str_relace(")_)",">",$content);
$content=str_replace("|_|","",$content);
rerurn trim($content);
}
參數描述
find必需。規定要查找的值。
replace必需。規定替換 find 中的值的值。
string必需。規定被搜索的字符串。
count可選。一個變量,對替換數進行計數。
新聞熱點
疑難解答