PHP quoted_printable_decode() 函式
示例
將 quoted-printable 字串解碼為 8 位 ASCII 字串
<?php
$str = "Hello=0Aworld.";
echo quoted_printable_decode($str);
?>
上述程式碼的瀏覽器輸出是
Hello world.
上述程式碼的 HTML 輸出是 (檢視原始碼)
Hello
world.
自己動手試一試 »
定義和用法
quoted_printable_decode() 函式將 quoted-printable 字串解碼為 8 位 ASCII 字串。
提示: Quoted-printable 編碼的資料在透過郵件傳輸時不太可能被修改。完全是 US-ASCII 的文字可以被編碼為 quoted-printable,以確保資料在透過字元轉換或換行閘道器時資料的完整性。
語法
quoted_printable_decode(string)
引數值
引數 | 描述 |
---|---|
string | 必需。指定要解碼的 quoted-printable 字串 |
技術詳情
返回值 | 返回 8 位 ASCII 字串 |
---|---|
PHP 版本 | 4+ |
❮ PHP 字串參考