===== Syntax ===== string quoted_printable_decode(string $text) //(PHP 4, PHP 5)// ^ $text | The source string to decode. | ^ RETURNS | A binary string which represents an e-mail attachment. | ===== What it Does ===== Converts a quoted printable string which is commonly used in e-mail messages to a binary string. Quoted printable is a way to encode attachments to e-mails which may be binary or text-based files. ===== Example ===== // Save a file attachment as a jpg image $contents = quoted_printable_decode($quotedPrintable); file_put_contents('emailAttachment.jpg', $contents);