Hallo!
Und wie stelle ich das an? hast du mir ein bespiel?
// Auszug CSV-Datei
name@domain.tld
blabla@domain.tld
$email_neu = 'eineneue@email.tld'
$email_liste = file("csvdatei.txt");
$vorhanden = false;
for($i==0;$i<count($email_liste);$i++)
{
if($email_liste[$i]==$email_neu)
{
$vorhanden = true;
break;
}
}
if($vorhanden)
{
echo "Email ist schon vorhanden!";
}
else
{
echo "Email ist noch nicht vorhanden!";
}
MfG, André Laugks
--
L-Andre @ gmx.de
L-Andre @ gmx.de