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
  • Find any one of a set of characters in a string - Return a substring that starts with the found character strpbrk

    strpbrk

    Findanyoneofasetofch
  • Set the first character of the string to uppercase ucfirst

    ucfirst

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

    strcspn

    Getthelengthofthesta
  • Check if the string ends with the given substring str_ends_with

    str_ends_with

    Checkifthestringends
  • Find the location where the string first appears (case insensitive) stripos

    stripos

    Findthelocationwhere
  • Parses entered characters according to the specified format sscanf

    sscanf

    Parsesenteredcharact
  • Insert HTML newline tag before all new lines of a string nl2br

    nl2br

    InsertHTMLnewlinetag
  • Alias ​​of rtrim chop

    chop

    Alias​​ofrtrim
Popular Articles