Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Comparing two lists of email addresses with PHP

$
0
0

Hey again, everybody.

 

Need help with the solution of yet another task related to php.

 

I have two lists of email addresses - List 1 and List 2, so to say. The entire contents of List 2 is a part of List 1.

 

I would like for PHP to compare both lists and erase all the email addresses out of List 2, that are contained in List 1, plus all the email addresses, located at every domain name, listed within List 2.

 

For instance:

 

List 1:

 

brym@yahoo.com

gargamel@yahoo.com

grungel@gmail.com

shushlek@hotmail.com

gushterlqk@aol.com

shuslica@web.de

 

 

List 2:

 

brym@yahoo.com

grungel@gmail.com

 

 

After processing's completed, List 1 should look like this:

 

List 1:

 

shushlek@hotmail.com

gushterlqk@aol.com

shuslica@web.de

 

How would I go about doing that?


Viewing all articles
Browse latest Browse all 13200

Trending Articles