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.

Example

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

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token variable">$str</span> <span class="token operator">=</span> <span class="token string double-quoted-string">"Hello=0Aworld."</span> <span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token function">quoted_printable_decode</span> <span class="token punctuation">(</span> <span class="token variable">$str</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

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

Similar Functions