title: How to remove duplicate data of JSON object using PHP
body: <p>I need one help.I have some JSON type data and i want to remove the duplicate set of data using PHP.I am explaining my code below.</p>
  
  <pre><code>data=[
     {'member_name':member1,'no_of_users':20},
      {'member_name':member1,'no_of_users':20},
      {'member_name':member1,'no_of_users':20},
      {'member_name':member2,'no_of_users':10},
     {'member_name':member2,'no_of_users':10},
     {'member_name':member3,'no_of_users':30},
  ]
  </code></pre>
  
  <p>my php side code is given below.</p>
  
  <pre><code>$res[]=array('member_name'=&gt;$member,'no_of_members'=&gt;$rowno['cnt']);
  $result=var_dump( array_unique( $res, SORT_REGULAR ) );
  //$result = json_decode($array, TRUE );
  print json_encode($result);
  </code></pre>
  
  <p>Here we can see many duplicate data available.I need to remove only the duplicate data from this JSON object using PHP.Please help me.</p>