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

親自試一試

同類函數
  • 使用另一個字符串將字符串填充到某個長度 str_pad

    str_pad

    使用另一個字符串將字符串填充到某個長度
  • str_replace的不區分大小寫的版本 str_ireplace

    str_ireplace

    str_replace的不區分大小寫的版
  • 刪除字符串末端的空白字符(或者其他字符) rtrim

    rtrim

    刪除字符串末端的空白字符(或者其他字符)
  • 根據指定格式解析輸入的字符 sscanf

    sscanf

    根據指定格式解析輸入的字符
  • 打斷字符串為指定數量的字串 wordwrap

    wordwrap

    打斷字符串為指定數量的字串
  • 將字符串拆分為較小的塊 chunk_split

    chunk_split

    將字符串拆分為較小的塊
  • 計算子字符串出現次數 substr_count

    substr_count

    計算子字符串出現次數
  • 使用“自然順序”算法進行字符串比較 strnatcmp

    strnatcmp

    使用“自然順序”算法進行字符串比較