I have an array

```
Array([0]=>Array
            (
               [a]=>'street1'
               [b]=>'area1'
               [c]=>'zip1'
            )
      [1]=>Array
            (
               [a]=>'street2'
               [b]=>'area1'
               [c]=>'zip1'
            (

      [2]=>Array
            (
               [a]=>'street3'
               [b]=>'area1'
               [c]=>'zip2'
            (
      )

```

here what I would like to do is, remove the duplicate values for the same key and store the remaining unique values like below in to another array

```
Array([a]=>Array('street1','street2','street3')
      [b]=>Array('area1')
      [c]=>Array('zip1','zip2')
      )

```

I tried doing this with array merge and some foreach loops and it really got messy. Could someone help me out with this.