extracting e-mail lists
Posted: Mon Jul 16, 2007 11:53 am
Is there a way to take a list of e-mail addresses (text1.txt) and remove all of them from a different list (text2.txt)?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$email_arr1 = array("info@domain.com", "info@dominan.net");
$email_arr2 = array("info@domain.co.uk", "info@domain.net");
foreach($email_arr1 as $key => $val){
if (in_array($val, $email_arr2)) {
echo "email matched: " . $val;
//perform your removal
}
};
?>