Hướng dẫn
Quảng cáo

Hàm quoted-printable-decode() trong PHP

Hướng dẫn cách sử dụng hàm quoted-printable-decode() trong lập trình PHP

Tác dụng của hàm quoted-printable-decode()

The quoted_printable_decode() function convert a quoted-printable string to an 8-bit ASCII string.

The following table summarizes the technical details of this function.

Return Value: Returns the 8-bit ASCII string.
Version: PHP 4+

Syntax

The basic syntax of the quoted_printable_decode() function is given with:

quoted_printable_decode(string);

The following example shows the quoted_printable_decode() function in action.

<?php
$str = "Hello=0AWorld!"; // "=0A" represent line feed or new line
echo quoted_printable_decode($str);
?>

Note: The quoted-printable encoding is used to represent data that largely consists of octets that correspond to printable characters in the US-ASCII character set. It encodes the data in such a way that the resulting octets are unlikely to be modified by mail transport.


Parameters

The quoted_printable_decode() function accepts the following parameters.

Parameter Description
string Required. Specifies the input string.

Bài viết này đã giúp ích cho bạn?

Bài viết mới

Advertisements