Home > Backend Development > PHP Tutorial > PHP经典小函数_PHP

PHP经典小函数_PHP

WBOY
Release: 2016-06-01 12:35:12
Original
903 people have browsed it

相当于函数html_entity_decode的:

function unhtmlentities($string)
{
    
$array = get_html_translation_table(HTML_ENTITIES
);
    
$array = array_flip($array
);
    return strstr
($string, $array
);
}

 

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template