utf8_decode()
创建于 2024-12-03 /
26
字体:
[默认]
[大]
[更大]
实例
将 UTF-8 字符串解码为 ISO-8859-1:
<?php$text = "xE0";
echo utf8_encode($text) ."<br>";
echo utf8_decode($text);
?> 亲自试一试 »
定义和用法
utf8_decode() 函数把 UTF-8 字符串解码为 ISO-8859-1。
This function decodes a string, previously encoded with the utf8_encode() function, back to ISO-8859-1.
语法
utf8_decode(string)参数值
参数 | 描述 |
---|---|
string | 必需。规定要解码的字符串。 |
技术细节
返回值: | 如果成功,该函数则返回解码字符串。如果失败,则返回 FALSE。 |
---|---|
PHP 版本: | 4.0+ |
❮ PHP XML 解析参考
0 人点赞过