iconv_mime_decode
iconv_mime_decode
Decodes a MIME header field
**iconv_mime_decode** string $string int $mode $encoding
Decodes a header field.
MIME
stringThe encoded header, as a string.
mode
determines the behaviour in the event
encounters a malformed
header field. You can specify any combination
of the following bitmasks.
`mode``iconv_mime_decode``MIME`
encoding
The optional parameter specifies the
character set to represent the result by. If omitted or null,
will be used.
`encoding`iconv.internal_encoding
Returns a decoded field on success,
or false if an error occurs during the decoding.
MIME
Voorbeeld: example
<?php
// This yields "Subject: Prüfung Prüfung"
echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=",
0, "ISO-8859-1");
?>
iconv_mime_decode_headers``mb_decode_mimeheader``imap_mime_header_decode``imap_base64``imap_qprint