update : 2015.11.03
php.shukuma.com검색:
|
mailparse_rfc822_parse_addresses(PECL mailparse >= 0.9.0) mailparse_rfc822_parse_addresses — Parse RFC 822 compliant addresses 설명
array mailparse_rfc822_parse_addresses
( string
$addresses
)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:
예제
Example #1 mailparse_rfc822_parse_addresses() example
<?php 위 예제의 출력: array(2) { [0]=> array(3) { ["display"]=> string(11) "Wez Furlong" ["address"]=> string(15) "wez@example.com" ["is_group"]=> bool(false) } [1]=> array(3) { ["display"]=> string(15) "doe@example.com" ["address"]=> string(15) "doe@example.com" ["is_group"]=> bool(false) } } |