extracting e-mail lists
Moderator: General Moderators
-
eektech909
- Forum Commoner
- Posts: 34
- Joined: Fri Jun 09, 2006 3:59 pm
extracting e-mail lists
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)?
Try this,
Not tested but should work
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
}
};
?>