There already is: http://php.net/imap_rfc822_parse_adrlist
quote from user contributed notes:"| This function does NOT test the syntax of either the local part, or the host part, it will permit illegal characters on either side."|
-- Respectfully, Ligaya Turmelle "Life is a game.... so have fun" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php