PHP quoted_printable_encode() Function
In this chapter you will learn:
- 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
Definition
The quoted_printable_encode() function converts an 8-bit string to a quoted-printable string.
Syntax
PHP quoted_printable_encode() Function has the following syntax.
quoted_printable_encode(string)
Parameter
Parameter | Is Required | Description |
---|---|---|
string | Required. | 8-bit string to be converted |
Return
PHP quoted_printable_encode() Function returns the converted string.
Example
converts an 8-bit string to a quoted-printable string
<?PHP
echo quoted_printable_encode ("java2s.com");
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Definition for PHP quotemeta() Function
- Syntax for PHP quotemeta() Function
- Parameter for PHP quotemeta() Function
- Return for PHP quotemeta() Function
- Example - Add backslashes in front of many predefined characters
Home » PHP Tutorial » PHP String Functions