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

亲自试一试

同类函数
  • 从数字生成单字节字符串 chr

    chr

    从数字生成单字节字符串
  • 二进制安全比较字符串开头的若干个字符(不区分大小写) strncasecmp

    strncasecmp

    二进制安全比较字符串开头的若干个字符(不
  • 获取数字格式信息 localeconv

    localeconv

    获取数字格式信息
  • 将字符串转化为大写 strtoupper

    strtoupper

    将字符串转化为大写
  • 使用 uuencode 编码一个字符串 convert_uuencode

    convert_uuencode

    使用uuencode编码一个字符串
  • 返回有关字符串中使用的字符的信息-统计 string 中每个字节值(0..255)出现的次数 count_chars

    count_chars

    返回有关字符串中使用的字符的信息-统计s
  • 计算字符串的md5哈希值 md5

    md5

    计算字符串的md5哈希值
  • implode的别名 join

    join

    implode的别名