共計 350 個字符,預計需要花費 1 分鐘才能閱讀完成。
PHP 中的 quoted_printable_decode()函數用于解碼使用 quoted-printable 編碼的字符串。
函數語法:
string quoted_printable_decode (string $str)
參數說明:
- $str:要解碼的字符串。
返回值:
- 解碼后的字符串。
示例:
$str = "Hello=0AWorld";
$decodedStr = quoted_printable_decode($str);
echo $decodedStr; // 輸出:Hello
在上面的示例中,字符串 ”Hello=0AWorld” 使用了 quoted-printable 編碼,其中 =0A
表示換行符。使用 quoted_printable_decode()函數解碼后的字符串是 ”Hello”。
丸趣 TV 網 – 提供最優質的資源集合!
正文完