title: Check if exists the same value in multidimensional array PHP
body: <p>Let's say i have an array like this:</p>
  
  <pre><code>$array = array(
    0 =&gt; 
      array (
        'value' =&gt;  '1' ,
        'name' =&gt;  'dasdfa sadfa' ),
  
     1=&gt; Array (
        'value' =&gt;  'adresa@gmail.com' ,
        'name' =&gt;  'd2' ),
    21 =&gt; 
      array(
        'value' =&gt;  'adresa@gmail.com' ,
        'name' =&gt;  'name1`' ),
  
    23 =&gt; 
      array(
        'value' =&gt;  'popescu.catalina@gmail.com' ,
        'name' =&gt;  'POPESCU CATALINA' ),
    24 =&gt; 
      array(
        'value' =&gt;  'popescu.catalina@gmail.com' ,
        'name' =&gt;  'POPESCU CATALINA' ),
  
    26 =&gt; 
      array(
        'value' =&gt;  'ricardo.ramos@amadeus.com',
        'name' =&gt;  '43414 Test01'),
    27 =&gt; 
      array(
        'value' =&gt;  'sta3no213123ct3av@yahoo.com',
        'name' =&gt;  'oct oct' )
  
  );
  </code></pre>
  
  <p>I want to know if exists duplicated value  in array with key 'value' I know how to do this if i want a specified value but general no. The result must be an array with no duplicated values(eg: </p>
  
  <pre><code>    $array = array(
    0 =&gt; 
      array (
        'value' =&gt;  '1' ,
        'name' =&gt;  'dasdfa sadfa' ),
  
     1=&gt; Array (
        'value' =&gt;  'adresa@gmail.com' ,
        'name' =&gt;  'd2' ),
  
    23 =&gt; 
      array(
        'value' =&gt;  'popescu.catalina@gmail.com' ,
        'name' =&gt;  'POPESCU CATALINA' ),
  
    26 =&gt; 
      array(
        'value' =&gt;  'ricardo.ramos@amadeus.com',
        'name' =&gt;  '43414 Test01'),
    27 =&gt; 
      array(
        'value' =&gt;  'sta3no213123ct3av@yahoo.com',
        'name' =&gt;  'oct oct' )
  
  );`
  </code></pre>
  
  <p>Please help me.</p>
  
  <p>This is my try</p>
  
  <pre><code>function has_dupes($array){
   $dupe_array = array();
   foreach($array as $val){
    if(++$dupe_array[$val] &gt; 1){
     return true;
    }
   }
   return false;
  }
  </code></pre>