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

    str_replace

    子字符串替換
  • 查詢語言和區域設置信息 nl_langinfo

    nl_langinfo

    查詢語言和區域設置信息
  • 計算文件的sha1哈希值 sha1_file

    sha1_file

    計算文件的sha1哈希值
  • 返回有關字符串中使用的單詞的信息 str_word_count

    str_word_count

    返回有關字符串中使用的單詞的信息
  • 使用“自然順序”算法進行字符串比較 strnatcmp

    strnatcmp

    使用“自然順序”算法進行字符串比較
  • 返回有關字符串中使用的字符的信息-統計string 中每個字節值(0..255)出現的次數 count_chars

    count_chars

    返回有關字符串中使用的字符的信息-統計s
  • 設置區域設置信息 setlocale

    setlocale

    設置區域設置信息
  • 將字符串轉換為數組 str_split

    str_split

    將字符串轉換為數組