puoi fare anche così:
Codice PHP:$file = file('tabella.txt');
while(list(,$row) = each($file)){
$value = explode(chr(9), $row);
if(eregi("^[a-z0-9][_\.a-z0-9-]+@([a-z0-9][0-9a-z-]+\.)+([a-z]{2,4})",$value[0])){
$array[$value[1]]=$value[0];
}
}
puoi fare anche così:
Codice PHP:$file = file('tabella.txt');
while(list(,$row) = each($file)){
$value = explode(chr(9), $row);
if(eregi("^[a-z0-9][_\.a-z0-9-]+@([a-z0-9][0-9a-z-]+\.)+([a-z]{2,4})",$value[0])){
$array[$value[1]]=$value[0];
}
}