Zend\Mail\Storage\Part::getHeader
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 Mime::LINEEND as delim).
Signature
public function getHeader(string
$name,
[string
$format = null] )
Parameters
$name
— string- name of header, matches case-insensitive, but camel-case is replaced with dashes
$format
— string- change type of return value to 'string' or 'array'
Returns
- ArrayIterator
- value of header in wanted or internal format