title: PHP Unique MultiDimensional Array Issue
body: <p>So, I am getting unique values from my MD array utilizing the following function:</p>
  
  <pre><code>    function unique_multidim_array($array, $key) { 
          $temp_array = array(); 
          $i = 0; 
          $key_array = array();           
          foreach( $array as $val ) { 
              if ( ! in_array( $val[$key], $key_array ) ) { 
                  $key_array[$i] = $val[$key]; 
                  $temp_array[$i] = $val; 
              }
              $i++; 
          } 
          return $temp_array; 
      } 
  </code></pre>
  
  <p>My array is similar to the following:</p>
  
  <pre><code>Array (
      [0] =&gt;
          Array (
              'name' =&gt; 'Nevada'
          )
      [1] =&gt;
          Array (
              'name' =&gt; 'Colorado'
          )
      [2] =&gt;
          Array (
              'name' =&gt; 'Nevada'
          )
      [3] =&gt;
          Array (
              'name' =&gt; 'Colorado'
          )
      [4] =&gt;
          Array (
              'name' =&gt; 'Oklahoma'
          )
      [5] =&gt;
          Array (
              'name' =&gt; 'Nevada'
          )
      [6] =&gt;
          Array (
              'name' =&gt; 'Nevada'
          )
  )
  </code></pre>
  
  <p>And using the function (<code>unique_multidim_array ( $term_arr, 'name' )</code>) above I am getting a single <code>Nevada</code> and a single <code>Colorado</code>, however, it is not returning <code>Oklahoma</code></p>
  
  <p>What can I do to ensure that it will return unique values, even if there are no duplicates?</p>