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

Returns true if the given number is even, false otherwise

Example:

<?php
function tips_Even($number)
{
  return ($number % 2) === 0;
}

print(tips_Even(8));

?>

Output:

1