
定义和用法
utf8_decode() 函数把 UTF-8 字符串解码为 ISO-8859-1。
该函数把通过 utf8_encode() 函数编码的 ISO-8859-1 字符串进行解码,转换成单字节的 ISO-8859-1 字符串。
如果成功,该函数则返回解码字符串。如果失败,则返回 FALSE。
语法
utf8_decode(string)
参数 | 描述 |
---|---|
string | 必需。规定要解码的字符串。 |
utf8_decode() 函数把 UTF-8 字符串解码为 ISO-8859-1。
该函数把通过 utf8_encode() 函数编码的 ISO-8859-1 字符串进行解码,转换成单字节的 ISO-8859-1 字符串。
如果成功,该函数则返回解码字符串。如果失败,则返回 FALSE。
utf8_decode(string)
参数 | 描述 |
---|---|
string | 必需。规定要解码的字符串。 |
本文地址:https://www.momojc.cn/php/php-utf8-db02.html