Reply to Re: regular expression inquiry

Your name:

Reply:


Posted by Janwillem Borleffs on 07/15/06 08:39

vito wrote:
> the 1st & 3rd are duplicates but the 4th one needs some attention.
>
> is there any convenient function to streamline this checking
> procedure? thanks in advance
>

Duplicates can be removed, e.g. with the following (when the text file isn't
too big!):

$file = file('test.txt');
$unique = array_unique($file);
$fp = fopen('test2.txt', 'w');
fputs($fp, implode('', $unique));
fclose($fp);

Where test2.txt now contains the unique records only. To detect the lines
that needs attention, you will need to define the criteria how to detect
them.


JW

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация