    MIME :: array split_header ( string headers )

    Return multidimensional ARRAY ('name' => string header_name, 'value' => string header_value, 'content' => array additional).

    The array additional is apply only to header names that begin with "Content-" (case insensitive).

    array additional format is multidimensional array (string name, string value)

    Example:

    $h = 'Received: by 127.0.0.1 with SMTP id z5mr1680x48fgx;'."\r\n\t".
         'Sat, 03 Nov 2007 05:33:29 -0700 (PDT)'."\r\n".
         'Received: from SMTP.Domain.net'."\r\n".
         'Content-Type: text/plain; charset="utf-8"; parameter="additional"';

    $r = MIME::split_header($h);

    // print result
    print_r($r);

    See Also: MIME::isset_header(), MIME::decode_header()

    [ Comments ]

    Last update: Sunday, November 04, 2007