quoted_printable_decode() converts a quoted-printable string to an 8-bit ASCII string. Quoted-printable strings are used to allow 8-bit ASCII text to transfer across legacy networks and are described in RFC 205, section 6.7:
"[The Quoted-Printable encoding is intended to represent data that largely consist of octets that correspond to printable characters in the US-ASCII character set. It encodes the data in such a way that the resulting octets are unlikely to be modified by mail transport. If the data being encoded are mostly US-ASCII text, the encoded form of the data remains largely recognizable by humans. A body which is entirely US-ASCII may also be encoded in Quoted-Printable to ensure the integrity of the data should the message pass through a character-translating, and/or line-wrapping gateway.]"
<?php // from "The Tick vs. The Tick" $soliloquy = <<<_THE_TICK_ I am mighty! I have a glow you cannot see. I have a heart=0Aas big as the m= oon! As warm as bathwater! We are superheroes,=0Amen, we don't have time to= be charming! The boots of evil=0Awere made for walkin'! We're watching the= big picture,=0Afriend! We know the score! We are a public service, not=0Ag= lamour boys! Not captains of industry! Keep your vulgar=0Amoneys! We are a = justice sandwich. No toppings necessary.=0ALiving rooms of America, do you = catch my drift? Do you dig? _THE_TICK_; echo quoted_printable_decode($soliloquy); ?> Output: I am mighty! I have a glow you cannot see. I have a heart as big as the moon! As warm as bathwater! We are superheroes, men, we don't have time to be charming! The boots of evil were made for walkin'! We're watching the big picture, friend! We know the score! We are a public service, not glamour boys! Not captains of industry! Keep your vulgar moneys! We are a justice sandwich. No toppings necessary. Living rooms of America, do you catch my drift? Do you dig?
PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing (Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch). This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). The authors of this book have elected not to choose any options under the OPL. This online book was obtained from http://www.fooassociates.com/phpfer/ and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4 for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All persons and entities shall have neither liability nor responsibility to any person or entity with respect to any loss or damage arising from the information contained in this book.