当前位置: 首页> 函数类别大全> quoted_printable_decode

quoted_printable_decode

将带引号的可打印字符串转换为8位字符串
名称:quoted_printable_decode
分类:字符串
所属语言:php
一句话介绍:把 quoted-printable 字符串转换为 8 位字符串。

实例

把 quoted-printable 字符串解码为 8 位 ASCII 字符串:

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token variable">$str</span> <span class="token operator">=</span> <span class="token string double-quoted-string">"Hello=0Aworld."</span><span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token function">quoted_printable_decode</span><span class="token punctuation">(</span><span class="token variable">$str</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

以上代码的浏览器输出:

Hello world.

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

Hello
world.

亲自试一试

同类函数
  • 返回字符串的一部分 substr

    substr

    返回字符串的一部分
  • 计算字符串的metaphone键 metaphone

    metaphone

    计算字符串的metaphone键
  • 在字符串所有新行之前插入 HTML 换行标记 nl2br

    nl2br

    在字符串所有新行之前插入HTML换行标记
  • 反转一个字符串 strrev

    strrev

    反转一个字符串
  • strstr的别名 strchr

    strchr

    strstr的别名
  • 获取字符串长度 strlen

    strlen

    获取字符串长度
  • 转换十六进制字符串为二进制字符串 hex2bin

    hex2bin

    转换十六进制字符串为二进制字符串
  • 将字符串转换为数组 str_split

    str_split

    将字符串转换为数组