当前位置: 首页> 函数类别大全> 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.

亲自试一试

同类函数
  • 二进制安全字符串比较 strcmp

    strcmp

    二进制安全字符串比较
  • 将字符由一种 Cyrillic 字符转换成另一种 convert_cyr_string

    convert_cyr_string

    将字符由一种Cyrillic字符转换成另
  • 以千位分隔符方式格式化一个数字 number_format

    number_format

    以千位分隔符方式格式化一个数字
  • 反引用一个使用 addcslashes() 转义的字符串 stripcslashes

    stripcslashes

    反引用一个使用addcslashes()
  • 使用“自然顺序”算法进行字符串比较 strnatcmp

    strnatcmp

    使用“自然顺序”算法进行字符串比较
  • 返回格式化的字符串 vsprintf

    vsprintf

    返回格式化的字符串
  • 从字符串的开头删除空格(或其他字符) ltrim

    ltrim

    从字符串的开头删除空格(或其他字符)
  • 将带引号的可打印字符串转换为8位字符串 quoted_printable_decode

    quoted_printable_decode

    将带引号的可打印字符串转换为8位字符串