title: How to determine whether there are duplicates in a two-dimensional array
body: <p>I have an array like this:</p>
  
  <pre><code>Array(
     ["dest0"] =&gt; Array(
                    ["id"] =&gt; 1,
                    ["name"] =&gt; name1   
                   ),    
     ["dest1"] =&gt; Array(
                    ["id"] =&gt; 2,
                    ["name"] =&gt; name2  
                   ),   
    ["dest2"] =&gt; Array(
                    ["id"] =&gt; 3,
                    ["name"] =&gt; name3  
                   ),   
    ["dest3"] =&gt; Array(
                    ["id"] =&gt; 1,
                    ["name"] =&gt; name1   
                   )
  );    
  </code></pre>
  
  <p>and want to check for duplicate values in it (like here dest0 and dest3 are duplicate), i dont want it to remove them like <a href="https://stackoverflow.com/questions/307674/how-to-remove-duplicate-values-from-a-multi-dimensional-array-in-php">here</a> , juste check if there's any.</p>
  
  <p>Thanks.</p>