w3resource

PHP: quoted_ printable_ decode() function

Description

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

Version:

(PHP 4 and above)

Syntax:

quoted_printable_decode(input_string)

Parameter:

Name Description Required /
Optional
Type
input_string The input string. Required String

Return value:

Returns the 8-bit binary string.

Value Type: String.

Pictorial Presentation

php-string-quoted_printable_decode()

Example:

<?php
$input_string = "Good=0AMorning.";
echo quoted_printable_decode($input_string);
?>

Output:

Good Morning.

View the example in the browser

See also

PHP Function Reference

Previous: printf
Next: quotemeta



PHP: Tips of the Day

A resource is a special type of variable that references an external resource, such as a file, socket, stream, document, or connection

Example:

$file = fopen('/etc/passwd', 'r');
echo gettype($file);
# Out: resource
echo $file;
# Out: Resource id #2 

There are different (sub-)types of resource. You can check the resource type using get_resource_type():

$file = fopen('/etc/passwd', 'r'); 
echo get_resource_type($file);
#Out: stream
$sock = fsockopen('www.google.com', 80);
echo get_resource_type($sock);
#Out: stream