RE: [PHP] Remove duplicates, as long as you have it.
| From: | Taylor, Stewart | Date: | Sun, 22 Apr 2001 12:09:20 +0000 |
| Subject: | RE: [PHP] Remove duplicates, as long as you have it. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49740@lists.php.net to get a copy of this message | ||
Have you tried the array_unique function
http://www.php.net/manual/en/function.array-unique.php
-Stewart
-----Original Message-----
From: Richard [mailto:oblivion@lunamorena.net]
Sent: 22 April 2001 12:36
To: php-general@lists.php.net
Subject: [PHP] Remove duplicates, as long as you have it.
Greetings.
I have this link file which has been active for quite a while, but the
problem is that when I used a "admin" program to manage the links
(admin.php) it kinda wrote the file multiple times, which means that it has
sorted the file and added multiple instances of the lines.
How I managed to create it? Well, by using the free linkadd/linkmanager
PHP script. Anyhow, what I need is how can I remove duplicates that are
sorted in arrays? Or does anyone of you has such a script or C++ program, so
you could sort the file for me or something?
Thanks
- Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net