Current Location: Home> Function Categories> quoted_printable_decode

quoted_printable_decode

Convert a printable string with quotes to an 8-bit string
Name:quoted_printable_decode
Category:String
Programming Language:php
One-line Description:Convert the quoted-printable string to an 8-bit string.

Definition and usage

quoted_printable_decode() decodes the quoted-printable encoded string and returns an 8-bit ASCII string.

Tip: The data encoded by quoted-printable is different from those modified by email transmission. Full US-ASCII text can be quoted-printable encoded to ensure data integrity when messaging via text translation or a line packet gateway.

Example

Decode the quoted-printable string into an 8-bit ASCII string:

 <?php
$str = "Hello=0Aworld." ;
echo quoted_printable_decode ( $str ) ;
?>

The browser output of the above code:

 Hello world.

The HTML output of the above code is as follows (see the source code):

 Hello
world.

Try it yourself

grammar

 quoted_printable_decode ( string )
parameter describe
string Required. Specifies the quoted-printable string to be decoded.
Similar Functions
  • Alias ​​of rtrim chop

    chop

    Alias​​ofrtrim
  • Returns information about the characters used in the string - counts the number of times each byte value (0..255) occurs in a string count_chars

    count_chars

    Returnsinformationab
  • Inversely escape an escaped string stripslashes

    stripslashes

    Inverselyescapeanesc
  • Remove spaces (or other characters) from the beginning and end of the string trim

    trim

    Removespaces(orother
  • Translate characters or replace substrings - convert specified characters strtr

    strtr

    Translatecharacterso
  • Calculate the soundex key of a string soundex

    soundex

    Calculatethesoundexk
  • Get the length of the starting substring that does not match the mask strcspn

    strcspn

    Getthelengthofthesta
  • Convert the value of a one-dimensional array into a string implode

    implode

    Convertthevalueofaon
Popular Articles