PHP quoted_printable_decode() 函数

PHP 教程 · 2019-01-29 19:42:54

实例

对经过 quoted-printable 编码后的字符串进行解码,返回 8 位的 ASCII 字符串:

<?php
$str = "Hello=0Aworld.";
echo quoted_printable_decode($str);
?>

上面代码的浏览器输出如下:

Hello world.

上面代码的 HTML 输出如下(查看源代码):

Hello
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

查看所有标签

Cracking the Coding Interview

Cracking the Coding Interview

Gayle Laakmann McDowell / CareerCup / 2015-7-1 / USD 39.95

Cracking the Coding Interview, 6th Edition is here to help you through this process, teaching you what you need to know and enabling you to perform at your very best. I've coached and interviewed hund......一起来看看 《Cracking the Coding Interview》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具