imap_mime_header_decode()함수는 ASCII 텍스트가 아닌 MIME 메시지 헤더 확장(MIME message header extensions)을 디코드한다. (RFC2047문서를 보라) 디코딩된 구성요소(elements)를 객체의 배열로 돌려준다. 이 객체는 두가지 속성을 갖는다, 즉 "charset" 과 "text" 이다. 구성요소가 인코딩되지 않았다면, 즉 평범한(plain) US-ASCII라면, 그 구성요소의 "charset" 속성은 "default"값을 갖는다.
In the above example we would have two elements, whereas the first element had previously been encoded with ISO-8859-1, and the second element would be plain US-ASCII.