FAQ |
Kalender |
![]() |
#1 | ||
|
|||
Flitig postare
|
Hej,
När jag kör: <?php $lista1 = file('emails.txt'); $lista2 = file('emails2.txt'); $prep1 = array_map("strtolower", $lista1); $prep2 = array_map("strtolower", $lista2); $list = array_diff($prep1, $prep2); sort($list, SORT_STRING); file_put_contents('unikt.txt', implode('', $list)); ?> så vill inte sista dubletten tas bort. Ex emails.txt: [email protected] [email protected] [email protected] Ex emails2.txt: [email protected] [email protected] Ger följande rader i unikt.txt efter körning: [email protected] [email protected] Vaffo blir det på detta viset? |
||
![]() |
![]() |
|
|