PHP utf8_decode() 函数

定义和用法
utf8_decode() 函数把 UTF-8 字符串解码为 ISO-8859-1。
该函数把用 UTF-8 方式编码的 ISO-8859-1 字符串转换成单字节的 ISO-8859-1 字符串。
如果成功,该函数将返回解码字符串;否则返回 false。
语法
utf8_decode(string)
参数 | 描述 |
---|---|
string | 必需。规定要解码的字符串。 |

utf8_decode() 函数把 UTF-8 字符串解码为 ISO-8859-1。
该函数把用 UTF-8 方式编码的 ISO-8859-1 字符串转换成单字节的 ISO-8859-1 字符串。
如果成功,该函数将返回解码字符串;否则返回 false。
参数 | 描述 |
---|---|
string | 必需。规定要解码的字符串。 |