Home > Backend Development > PHP Tutorial > php html实体字符的转换解决办法

php html实体字符的转换解决办法

WBOY
Release: 2016-06-13 12:06:15
Original
1004 people have browsed it

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

php那几个函数都试过了,不行呀。
------解决方案--------------------

<br />echo	mb_convert_encoding("&eacute;", "UTF-8", "HTML-ENTITIES"); <br />//é<br />
Copy after login

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

本帖最后由 xuzuning 于 2012-10-07 16:56:43 编辑 $text = mb_convert_encoding($text, "UTF-8", "HTML-ENTITIES");
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