PHP quoted_printable_decode() Function
In this chapter you will learn:
- Definition for PHP quoted_printable_decode() Function
- Syntax for PHP quoted_printable_decode() Function
- Parameter for PHP quoted_printable_decode() Function
- Return for PHP quoted_printable_decode() Function
- Example - Decode a quoted-printable string to an 8-bit ASCII string
Definition
The quoted_printable_decode() function decodes a quoted-printable string to an 8-bit ASCII string.
Syntax
PHP quoted_printable_decode() Function has the following syntax.
quoted_printable_decode(string)
Parameter
Parameter | Is Required | Description |
---|---|---|
string | Required. | Quoted-printable string to be decoded |
Return
PHP quoted_printable_decode() Function returns the 8-bit ASCII string
Example
Decode a quoted-printable string to an 8-bit ASCII string:
<?php
$str = "Hello=0Ajava2s.com.";
echo quoted_printable_decode($str);
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Definition for PHP quoted_printable_encode() Function
- Syntax for PHP quoted_printable_encode() Function
- Parameter for PHP quoted_printable_encode() Function
- Return for PHP quoted_printable_encode() Function
- Example - converts an 8-bit string to a quoted-printable string
Home » PHP Tutorial » PHP String Functions