(PECL mailparse >= 0.9.0)
mailparse_rfc822_parse_addresses — Parse RFC 822 compliant addresses
$addresses) : array
Parses a » RFC 822 compliant recipient list, such as that found in the To: header.
Returns an array of associative arrays with the following keys for each recipient:
|display||The recipient name, for display purpose. If this part is not set for a recipient, this key will hold the same value as address.|
|address||The email address|
Example #1 mailparse_rfc822_parse_addresses() example