Table of Contents

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);
 
quoted_printable_decode.txt · Last modified: 2011/02/18 17:00 by orvado
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki