← All docs

iconv_mime_decode_headers()

Decodes a block of MIME header fields into an associative array.

iconv_mime_decode_headers()

function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): mixed

Decodes a block of MIME header fields into an associative array.

Parameters:

  • $headers (string)
  • $mode (int), default 0, optional
  • $encoding (?string), default null, optional

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how iconv_mime_decode_headers is implemented in the compiler, see the internals page.