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

親自試一試

同類函數
  • 二進制安全比較字符串(從偏移位置比較指定長度) substr_compare

    substr_compare

    二進制安全比較字符串(從偏移位置比較指定
  • 二進制安全比較字符串開頭的若干個字符 strncmp

    strncmp

    二進制安全比較字符串開頭的若干個字符
  • 計算字符串的md5哈希值 md5

    md5

    計算字符串的md5哈希值
  • 解碼一個uuencode 編碼的字符串 convert_uudecode

    convert_uudecode

    解碼一個uuencode編碼的字符串
  • 輸出一個字符串 print

    print

    輸出一個字符串
  • 在字符串所有新行之前插入HTML 換行標記 nl2br

    nl2br

    在字符串所有新行之前插入HTML換行標記
  • 將字符串轉化為大寫 strtoupper

    strtoupper

    將字符串轉化為大寫
  • 返回格式化的字符串 vsprintf

    vsprintf

    返回格式化的字符串