當前位置: 首頁> 函數類別大全> 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.

親自試一試

同類函數
  • rtrim的別名 chop

    chop

    rtrim的別名
  • 計算字符串中全部字符都存在於指定字符集合中的第一段子串的長度 strspn

    strspn

    計算字符串中全部字符都存在於指定字符集合
  • 從字符串的開頭和結尾去除空格(或其他字符) trim

    trim

    從字符串的開頭和結尾去除空格(或其他字符
  • 判斷一個字符串中是否包含一個給定的子字符串 str_contains

    str_contains

    判斷一個字符串中是否包含一個給定的子字符
  • 刪除字符串末端的空白字符(或者其他字符) rtrim

    rtrim

    刪除字符串末端的空白字符(或者其他字符)
  • 輸出格式化的字符串 printf

    printf

    輸出格式化的字符串
  • 查找字符串中子字符串第一次出現的位置 strpos

    strpos

    查找字符串中子字符串第一次出現的位置
  • 將帶引號的可打印字符串轉換為8位字符串 quoted_printable_decode

    quoted_printable_decode

    將帶引號的可打印字符串轉換為8位字符串