<?
$email = "dsfdsfds@dsfsdf.com";
$password = "wspart1";
$attendees = file('email-list.txt');
$attmatch = explode(" ", $attendees);
for($i=1; $i<count($attendees); $i++){
$attshow .= $attendees[$i];
}
if (preg_match("/$email/", "/$attshow/")){
echo "match";
} else {
echo "no match";
}
?>