title: removing array duplicates from associative array
body: <p>So i have:</p>
  
  <pre><code>Array (
        [animals] =&gt; Array
          (
  
              [0] =&gt; horse
              [1] =&gt; dog
              [2] =&gt; dog
  
          )
        [team] =&gt; Array
          (
  
              [0] =&gt; cubs
              [1] =&gt; reds
              [2] =&gt; cubs
  
          )
  )
  </code></pre>
  
  <p>Trying to eliminate the repeat ones with animals and same with team. </p>
  
  <p>Tried this but didn't help.</p>
  
  <pre><code>$unique = array_map("unserialize", array_unique(array_map("serialize", $result)));
  </code></pre>
  
  <p>Seems like it doesn't reach deep inside, don't want either to hard code animals or team. </p>