• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Find doubles?

Adam Howard

Well-known member
#1
I used a program not to long ago where I was able to search for doubles (not a database search, simple copy and past). Well I had to format my pc and so now I don't have the program or remember what it was called .....

One of the things I do hate about Linux is how people name things... Seriously... I once had something installed called ululoiz9ohli (that wasn't the package name, that really was the program. package name was much odder).

Any ways.... back on topic...

• Alice • Jane • guiltar • Morgan • ragtek • Darkimmortal • Russ • Onimua • xfrocks • Slavik • Alluidh • giorgino • Kim • MRaburn • Jake Bunce • Dinh Thanh • turkyalawlqy • Rigel Kentaurus • Naatan • Allan • The8thLegion • moman • ShadyX • King Kovifor • Shelley • EQnoble • BirdOPrey5 • Brogan • Tilkißey • Jaxel • Qwk86gn • Pepelac • CyberAP • borbole • Dismounted • Paul M • marioman • g0rn • svetoslav80 • lms • Waindigo • Boofo (Robert Ernest Hindal, Jr.) • Chris Deeming • Micheal • The Pet Board • ip0dhacker • cclaerhout • Mr. Goodie2Shoes • Blakefire • -Ice- • chiplove.9xpro • luutruong • Syndol • Contex • Mythotical • Daniel 'RTRD' • sonnb • Forsaken • tafreehm • Russ • wdb • Lenin • LP-John • Liam23 • digitalpoint • Gopala Subramanium • King Kovifor • Fluttershy • Saeed • vinavb • turkyalawlqy • Richard.r • Carlos B • Morgan • MattW • Ims • MRaburn • M@rc • moman • bambua • EQnoble • Pepelac • SchmitzIT •

That's the list and I'm trying to see if I have any doubles. Anyone know how to weed through that?
 

digitalpoint

Well-known member
#4
Fairly simple to just make a PHP script to do it...

PHP:
<?php

        $string = "• Alice • Jane • guiltar • Morgan • ragtek • Darkimmortal • Russ • Onimua • xfrocks • Slavik • Alluidh • giorgino • Kim • MRaburn • Jake Bunce • Dinh Thanh • turkyalawlqy • Rigel Kentaurus • Naatan • Allan • The8thLegion • moman • ShadyX • King $
        $items = explode('•', $string);
        foreach ($items as $item)
        {
                $person = trim ($item);
                if ($person)
                {
                        $result[$person]++;
                }
        }
        asort($result);
        print_r ($result);
Number of times each person is in the list:
Code:
Array
(
    [chiplove.9xpro] => 1
    [-Ice-] => 1
    [Blakefire] => 1
    [luutruong] => 1
    [Syndol] => 1
    [Daniel 'RTRD'] => 1
    [Mythotical] => 1
    [Contex] => 1
    [Mr. Goodie2Shoes] => 1
    [cclaerhout] => 1
    [Boofo (Robert Ernest Hindal, Jr.)] => 1
    [Waindigo] => 1
    [lms] => 1
    [Chris Deeming] => 1
    [Micheal] => 1
    [ip0dhacker] => 1
    [The Pet Board] => 1
    [sonnb] => 1
    [Forsaken] => 1
    [Carlos B] => 1
    [Richard.r] => 1
    [vinavb] => 1
    [MattW] => 1
    [Ims] => 1
    [SchmitzIT] => 1
    [bambua] => 1
    [M@rc] => 1
    [Saeed] => 1
    [Fluttershy] => 1
    [Lenin] => 1
    [wdb] => 1
    [tafreehm] => 1
    [LP-John] => 1
    [Liam23] => 1
    [Gopala Subramanium] => 1
    [digitalpoint] => 1
    [svetoslav80] => 1
    [g0rn] => 1
    [Jake Bunce] => 1
    [Kim] => 1
    [giorgino] => 1
    [Dinh Thanh] => 1
    [Rigel Kentaurus] => 1
    [Alice] => 1
    [Naatan] => 1
    [Alluidh] => 1
    [Slavik] => 1
    [guiltar] => 1
    [Jane] => 1
    [ragtek] => 1
    [Darkimmortal] => 1
    [xfrocks] => 1
    [Onimua] => 1
    [The8thLegion] => 1
    [Allan] => 1
    [CyberAP] => 1
    [Qwk86gn] => 1
    [Jaxel] => 1
    [borbole] => 1
    [Dismounted] => 1
    [marioman] => 1
    [Paul M] => 1
    [Brogan] => 1
    [Tilkißey] => 1
    [Shelley] => 1
    [BirdOPrey5] => 1
    [ShadyX] => 1
    [Morgan] => 2
    [King Kovifor] => 2
    [turkyalawlqy] => 2
    [Russ] => 2
    [MRaburn] => 2
    [Pepelac] => 2
    [EQnoble] => 2
    [moman] => 2
)