imap_header

(PHP 4, PHP 5)

imap_header — Alias of imap_headerinfo()

Описание

This function is an alias of: imap_headerinfo().

Коментарии

Here is a clean way to decode encoded imap headers that will work in all cases :

function fix_text($str)
{
    $subject = '';
    $subject_array = imap_mime_header_decode($str);

    foreach ($subject_array AS $obj)
        $subject .= rtrim($obj->text, "\t");

    return $subject;
}
2008-02-01 08:37:53
http://php5.kiev.ua/manual/ru/function.imap-header.html
At jeremy at caramiel dot com:
You are wrong, since it will just work if the encoding of the characters is also used in the current context.
There is a reason why it comes with the charset :)

There are way better solutions with imap_mime_header_decode
2008-02-05 13:43:03
http://php5.kiev.ua/manual/ru/function.imap-header.html

    Поддержать сайт на родительском проекте КГБ