PHP quoted_printable_decode() 函数
PHP 教程
· 2019-01-29 19:42:54
实例
对经过 quoted-printable 编码后的字符串进行解码,返回 8 位的 ASCII 字符串:
<?php
$str = "Hello=0Aworld.";
echo quoted_printable_decode($str);
?>
$str = "Hello=0Aworld.";
echo quoted_printable_decode($str);
?>
上面代码的浏览器输出如下:
Hello world.
上面代码的 HTML 输出如下(查看源代码):
Hello
world.
world.
定义和用法
quoted_printable_decode() 对经过 quoted-printable 编码后的字符串进行解码,返回 8 位的 ASCII 字符串
提示:经过 quoted-printable 编码后的数据与通过邮件传输进行修改的不一样。一个完全 US-ASCII 的文本可进行 quoted-printable 编码,用来确保通过文字翻译或线包网关进行消息传递时数据的完整性。
语法
quoted_printable_decode(string)
| 参数 | 描述 |
|---|---|
| string | 必需。规定要解码的 quoted-printable 字符串。 |
技术细节
| 返回值: | 返回 8 位的 ASCII 字符串。 |
|---|---|
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Programming in Haskell
Graham Hutton / Cambridge University Press / 2007-1-18 / GBP 34.99
Haskell is one of the leading languages for teaching functional programming, enabling students to write simpler and cleaner code, and to learn how to structure and reason about programs. This introduc......一起来看看 《Programming in Haskell》 这本书的介绍吧!