加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHP:将html-entity-encoded大写字符转换为小写

发布时间:2020-12-13 18:27:44 所属栏目:PHP教程 来源:网络整理
导读:如何将大写的html实体字符转换为小写? $str = "#xC9;"; //é$res = strtolower( $str );echo $res; http://codepad.viper-7.com/Zf3RTe $str = "#xC9;"; //é$res = mb_strtolower(html_entity_decode($str,ENT_COMPAT|ENT_HTML401,'UTF-8'),'UTF-8' );echo
如何将大写的html实体字符转换为小写?
$str = "É"; //é

$res = strtolower( $str );

echo $res;

http://codepad.viper-7.com/Zf3RTe

$str = "É"; //é

$res = mb_strtolower(html_entity_decode($str,ENT_COMPAT|ENT_HTML401,'UTF-8'),'UTF-8' );

echo $res;

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读