public function getAddresses($name)
    {
        $value = $this->getRawHeader($name);
        $value = (is_array($value)) ? $value[0] : $value;
        $addresses = mailparse_rfc822_parse_addresses($value);
        foreach ($addresses as $i => $item) {
            $addresses[$i]['display'] = $this->decodeHeader($item['display']);
        }
        return $addresses;
    }
public function getAddresses($name)
    {
        $value = $this->getRawHeader($name);
        $value = (is_array($value)) ? $value[0] : $value;
        $addresses = mailparse_rfc822_parse_addresses($value);
        foreach ($addresses as $i => $item) {
            $addresses[$i]['display'] = $this->decodeHeader($item['display']);
        }
        return $addresses;
    }
public function getAddresses ( $ name ) { $ value = $ this -> getRawHeader ( $ name ) ; $ value = ( is_array ( $ value ) ) ? $ value [ 0 ] : $ value ; $ addresses = mailparse_rfc822_parse_addresses ( $ value ) ; foreach ( $ addresses as $ i => $ item ) { $ addresses [ $ i ] [ 'display' ] = $ this -> decodeHeader ( $ item [ 'display' ] ) ; } return $ addresses ; }
Return an array with the following keys display, address, is_group

@param string $name Header name (case-insensitive)

@return array
Return an array with the following keys display address is_group