imap_rfc822_parse_adrlist
PHP 4, PHP 5, PHP 7, PHP 8
imap_rfc822_parse_adrlist - Parses an address string
Manual
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