← All docs

iconv_mime_decode()

Decodes one MIME header field into the requested character encoding.

iconv_mime_decode()

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

Decodes one MIME header field into the requested character encoding.

Parameters:

  • $string (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 is implemented in the compiler, see the internals page.