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

親自試一試

同類函數
  • 在字符串所有新行之前插入HTML 換行標記 nl2br

    nl2br

    在字符串所有新行之前插入HTML換行標記
  • 從字符串中刪除HTML和PHP標記 strip_tags

    strip_tags

    從字符串中刪除HTML和PHP標記
  • 基於區域設置的字符串比較 strcoll

    strcoll

    基於區域設置的字符串比較
  • 二進制安全比較字符串(從偏移位置比較指定長度) substr_compare

    substr_compare

    二進制安全比較字符串(從偏移位置比較指定
  • 反轉一個字符串 strrev

    strrev

    反轉一個字符串
  • 將字符串的第一個字符設為小寫 lcfirst

    lcfirst

    將字符串的第一個字符設為小寫
  • 將特殊的HTML 實體轉換回普通字符 htmlspecialchars_decode

    htmlspecialchars_decode

    將特殊的HTML實體轉換回普通字符
  • 解碼一個uuencode 編碼的字符串 convert_uudecode

    convert_uudecode

    解碼一個uuencode編碼的字符串