title: Remove duplicate values from json array in PHP
body: <p>I question here about that:</p>
  
  <p><a href="https://stackoverflow.com/questions/59838726/removing-duplicates-from-array-json-problem-with-array-unique">Removing duplicates from array + json, problem with array_unique</a></p>
  
  <p>But I need modification. </p>
  
  <p>I have array something like:</p>
  
  <pre><code>Array (
    [0] =&gt; {"name":"John", "surname":"Smith"}, {"name":"Kate", "surname":"Winston"},
    [1] =&gt; {"name":"Kate", "surname":"Winston"}, {"name":"Jack", "surname":"Irving"}
  )
  </code></pre>
  
  <p>I want to remove duplicates and this result:</p>
  
  <pre><code>Array (
    [0] =&gt; {"name":"John", "surname":"Smith"},
    [1] =&gt; {"name":"Jack", "surname":"Irving"},
  )
  </code></pre>