title: Remove objects with duplicate values in array of stdClass objects
body: <p>I'm trying to handle this data that I'm getting dynamically from an API. I know that the <code>id</code>'s will always be unique, but the <code>name</code>'s often match each other, which is a problem. Using PHP, how would I remove any stdClass Object whose <code>name</code> is identical to a previous object's <code>name</code> value from this array? I do specifically want the checks to progress from 0 to the highest value because there is other data in these stdClass Objects. In this case, I would want <code>1</code> to be removed because its name matches <code>0</code>'s name, but afterwards what is currently <code>2</code> should become the new <code>1</code> for obvious reasons.</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [id] =&gt; 6969
              [name] =&gt; Steve Jobs
          )
      [1] =&gt; stdClass Object
          (
              [id] =&gt; 2013
              [name] =&gt; Steve Jobs
          )
      [2] =&gt; stdClass Object
          (
              [id] =&gt; 1234
              [name] =&gt; The Woz
          )
  )
  </code></pre>
  
  <p>Thanks!</p>