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">
body, pre {
	font-family: Verdana;
	font-size: 10pt;
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

XPM3_MIME :: <i>array</i> <b>decode_header</b> ( <i>string</i> content )
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".

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

// print result

/* will print:
    [charset] => UTF-8
    [encoding] => base64
    [value] => XPM3 for PHP5

<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


Return current item: EXtensible Production Suite (XPS)