Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/mime/decode_header.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>XPM3_MIME::decode_header()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
XPM3_MIME :: <i>array</i> <b>decode_header</b> ( <i>string</i> content )
<hr>
Returns an array with decode value and information about this: charset and encoding type.

Decode an encoded mail header value.

<i>Notice</i>: by default charset is set to "ISO-8859-1" if can't find any information about charset, and encoding type is "7bit".

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
$decode = XPM3_MIME::decode_header('=?UTF-8?B?WFBNMyBmb3IgUEhQNQ==?=');

// print result
print_r($decode);

/* will print:
Array
(
    [charset] => UTF-8
    [encoding] => base64
    [value] => XPM3 for PHP5
)
*/
</code></pre>
</td></tr>
</table>

<hr color="white">

[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_MIME decode_header">Comments</a> ]

Last update: Tuesday, January 16, 2007

</pre>

</body>
</html>
Return current item: EXtensible Production Suite (XPS)