Home >Backend Development >PHP Tutorial > php html实业字符的转换

php html实业字符的转换

WBOY
WBOYOriginal
2016-06-13 13:10:00810browse

php html实体字符的转换
php有什么函数能把html实体符号é转换成é?

php那几个函数都试过了,不行呀。

------解决方案--------------------

PHP code

echo    mb_convert_encoding("é", "UTF-8", "HTML-ENTITIES"); 
//é
<br><font color="#e78608">------解决方案--------------------</font><br>$text = mb_convert_encoding($text, "UTF-8", "HTML-ENTITIES"); <div class="clear">
                 
              
              
        
            </div>
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