title: Remove two dimentional array elements(except first match) which array specific value are same/unique
body: <p>For example, I have an following two dimentional array is below,</p>
  <pre><code>$a = array(
      &quot;one&quot; =&gt; array (
          &quot;id&quot; =&gt; 111,
          &quot;name&quot; =&gt; &quot;Jhon&quot;
      ),
      &quot;two&quot; =&gt; array(
          &quot;id&quot; =&gt; 222,
          &quot;name&quot; =&gt; &quot;Adam&quot;
      ),
      &quot;three&quot; =&gt; array(
          &quot;id&quot; =&gt; 111,
          &quot;name&quot; =&gt; &quot;Mark&quot;
      ),
      &quot;four&quot; =&gt; array(
          &quot;id&quot; =&gt; 125,
          &quot;name&quot; =&gt; &quot;Jhon&quot;
      ),
      &quot;five&quot; =&gt; array(
          &quot;id&quot; =&gt; 111,
          &quot;name&quot; =&gt; &quot;Jhon&quot;
      ),
      &quot;six&quot; =&gt; array(
          &quot;id&quot; =&gt; 222,
          &quot;name&quot; =&gt; &quot;Rock&quot;
      ),
  );
  </code></pre>
  <p>I would like to remove array(except first match) which two dimensional array values are same/unique.
  For example, I would like to remove all of the arrays(except first match) which <code>id</code> keys values are same.
  As, array <code>id</code> keys values <code>111</code>(has array count 3) and <code>222</code>(has array count 2).
  So after removing the unique key <code>id</code> the result array should be following,</p>
  <pre><code>$a = array(
      &quot;one&quot; =&gt; array (
          &quot;id&quot; =&gt; 111,
          &quot;name&quot; =&gt; &quot;Jhon&quot;
      ),
      &quot;two&quot; =&gt; array(
          &quot;id&quot; =&gt; 222,
          &quot;name&quot; =&gt; &quot;Adam&quot;
      ),
      &quot;four&quot; =&gt; array(
          &quot;id&quot; =&gt; 125,
          &quot;name&quot; =&gt; &quot;Jhon&quot;
      ),
  );
  </code></pre>