imap_rfc822_parse_adrlist

PHP 4, PHP 5, PHP 7, PHP 8
imap_rfc822_parse_adrlist - Parses an address string
Manual
Code Examples

imap_rfc822_parse_adrlist( string$string, string$default_hostname ): array

Parses the address string as defined in RFC2822 and for each address.

Parameters

string

A string containing addresses

default_hostname

The default host name

Return Values

Returns an array of objects. The objects properties are:

mailbox - the mailbox name (username)

host - the host name

personal - the personal name

adl - at domain source route

Related Functions

Example of imap_rfc822_parse_adrlist

Show all examples for imap_rfc822_parse_adrlist

PHP Version:


Function imap_rfc822_parse_adrlist:

IMAP, POP3 and NNTP Functions

Most used PHP functions