$address_string = "Hartmut Holzgraefe hartmut@cvs.php.net, postmaster@somedomain.net, root"; $address_array = imap_rfc822_parse_adrlist($address_string ,"somedomain.net"); if(! is_array($address_array)) die("somethings wrong\n"); reset($address_array); while(list($key,$val)=each($address_array)) {print "mailbox: ".$val - mailbox." br \n"; print "host: ".$val - host. "br \n"; print "personal: ".$val - personal." br \n"; print "adl: ".$val - adl. "p \n";}
?php $address_string = "Hartmut Holzgraefe hartmut@cvs.php.net, postmaster@somedomain.net, root"; $address_array = imap_rfc822_parse_adrlist($address_string ,"somedomain.net"); if(! is_array($address_array)) die("une erreur...\n"); reset($address_array); while(list($key,$val)=each($address_array)) {print "boîte: ".$val - mailbox." br \n"; print "hôte: ".$val - host. "br \n"; print "personnel: ".$val - personal." br \n"; print "adl: ".$val - adl. "p \n";}?