Get a header in specified format
Internally headers that occur more than once are saved as array, all other as string. If $format is set to string implode is used to concat the values (with ZendMimeMime::LINEEND as delim).
Parameters: |
|
---|---|
Return type: | string|array|ZendMailHeaderHeaderInterface|ArrayIterator value of header in wanted or internal format |
Throws : | ExceptionExceptionInterface |
Get a specific field from a header like content type or all fields as array
If the header occurs more than once, only the value from the first header is returned.
Throws an exception if the requested header does not exist. If the specific header field does not exist, returns null.
Parameters: |
|
---|---|
Return type: | string|array wanted part or all parts as array($firstName => firstPart, partname => value) |
Throws : | ExceptionExceptionInterface |