Open In App

PHP mb_decode_mimeheader() Function

Last Updated : 28 Mar, 2023
Comments
Improve
Suggest changes
4 Likes
Like
Report

The mb_decode_mimeheader()  function is an inbuilt function in PHP where the string is decoded into the MIME header field.

Syntax:

mb_decode_mimeheader(string $string): string

Parameter: This function has a single parameter:

  • string: This parameter specifies the string that is to be decoded.

Return Value: The decoded string will be returned in internal character encoding.

Example 1: The following code demonstrates the mb_decode_mimeheader() function

Output:

Café_au_lait

Example 2:  The following code demonstrates the mb_decode_mimeheader() function

Output:

array(3) {
   [0]=> string(13) "Café_au_lait"
   [1]=> string(6) "Björk"
   [2]=> string(13) "Mötley_Crüe"
}

Reference: https://www.php.net/manual/en/function.mb-decode-mimeheader.php


Similar Reads