
25.02.2009, 14:29
|
|
Участник форума
Регистрация: 09.03.2008
Сообщений: 193
Провел на форуме: 2140897
Репутация:
267
|
|
PHP код:
<?php
$file = file(' base.txt');
$file_2 = file('unsubscribe.txt');
$array = array_map('trim',array_merge($file,$file_2));
$result = array_unique($array);
$fp = fopen('base.txt','w');
foreach($result as $key=>$value) {
fwrite($fp,$value."\r\n");
}
fclose($fp);
?>
|
|
|