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://www.codercto.com/courses/l/5.html
Data Structures and Algorithm Analysis in Java
Mark A. Weiss / Pearson / 2011-11-18 / GBP 129.99
Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course wa......一起来看看 《Data Structures and Algorithm Analysis in Java》 这本书的介绍吧!