Home  >  Article  >  Backend Development  >  What are the specific uses of the common functions included in the php-system? Can any expert explain them to me?

What are the specific uses of the common functions included in the php-system? Can any expert explain them to me?

WBOY
WBOYOriginal
2016-11-30 23:59:521124browse

php

function unhtml($content){
$content=str_replace("&","&",$content);
$content=str_replace("<","<", $content);
$content=str_replace(">",">",$content);
$content=str_replace(" "," ",$content);
$content=str_replace(chr(13) ,"
",$content);
$content=str_replace("","\",$content);
$content=str_replace(chr(34),""",$content);

<code>         return $content;        }</code>

?> ;

Reply content:

String replacement, filter html code

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn