How can I find duplicates in an array, append their values to the original and then delete the entire duplicate entry?
I have an array that has duplicate entries in the URL field.

When a duplicate is found I want to:

 1. Take its 'score' and add it to the original
 2. Take its 'engine' string and append it to the original
 3. Then delete the entire duplicate entry

>     array
>       0 => 
>         array
>           'url' => string 'http://blahhotel.com/'
>           'score' => int 1
>           'engine' => string 'cheese'
>       1 => 
>         array
>           'url' => string 'http://www.blahdvd.com/'
>           'score' => int 2
>           'engine' => string 'cheese'
>       2 => 
>         array (size=6)
>           'url' => string 'http://blahhotel.com/'
>           'score' => int 1
>           'engine' => string 'pie'
>       3 => 
>         array (size=6)
>           'url' => string 'http://dictionary.reference.com/browse/blah'
>           'score' => int 2
>           'engine' => string 'pie'
>       4 => 
>         array (size=6)
>           'url' => string 'http://dictionary.reference.com/browse/blah'
>           'score' => int 1
>           'engine' => string 'apples'


So it should look like this in the end:

>     array
>       0 => 
>         array
>           'url' => string 'http://blahhotel.com/'
>           'score' => int 2
>           'engine' => string 'cheese, pie'
>       1 => 
>         array
>           'url' => string 'http://www.blahdvd.com/'
>           'score' => int 2
>           'engine' => string 'cheese'
>       3 => 
>         array (size=6)
>           'url' => string 'http://dictionary.reference.com/browse/blah'
>           'score' => int 3
>           'engine' => string 'pie, apples'
How can I find duplicates in an array, append their values to the original and then delete the entire duplicate entry?
===

I have an array that has duplicate entries in the URL field.

When a duplicate is found I want to:

 1. Take its 'score' and add it to the original
 2. Take its 'engine' string and append it to the original
 3. Then delete the entire duplicate entry

>     array
>       0 => 
>         array
>           'url' => string 'http://blahhotel.com/'
>           'score' => int 1
>           'engine' => string 'cheese'
>       1 => 
>         array
>           'url' => string 'http://www.blahdvd.com/'
>           'score' => int 2
>           'engine' => string 'cheese'
>       2 => 
>         array (size=6)
>           'url' => string 'http://blahhotel.com/'
>           'score' => int 1
>           'engine' => string 'pie'
>       3 => 
>         array (size=6)
>           'url' => string 'http://dictionary.reference.com/browse/blah'
>           'score' => int 2
>           'engine' => string 'pie'
>       4 => 
>         array (size=6)
>           'url' => string 'http://dictionary.reference.com/browse/blah'
>           'score' => int 1
>           'engine' => string 'apples'


So it should look like this in the end:

>     array
>       0 => 
>         array
>           'url' => string 'http://blahhotel.com/'
>           'score' => int 2
>           'engine' => string 'cheese, pie'
>       1 => 
>         array
>           'url' => string 'http://www.blahdvd.com/'
>           'score' => int 2
>           'engine' => string 'cheese'
>       3 => 
>         array (size=6)
>           'url' => string 'http://dictionary.reference.com/browse/blah'
>           'score' => int 3
>           'engine' => string 'pie, apples'