title: Filter common data in array
body: <p>Hi i am new in php and i have an array with some  common data in my array, i try many code and also search more and more but i am unable to do this please help me thanks.</p>
  
  <pre><code>Array(
  [0] =&gt; stdClass Object
      (
          [user_id] =&gt; 52
          [owner] =&gt; abc@gmail.com
          [sender] =&gt; Steve
          [alert_id] =&gt; 18
          [alert_community_id] =&gt; 1
          [alert_user_id] =&gt; 52
          [alert_text] =&gt; asdfasdf
          [alert_url] =&gt; asdfasdf-1
          [alert_note] =&gt; 
          [alert_source_proof] =&gt; asdfasdfasf
          [alert_proof_image] =&gt; 
          [is_time_critical] =&gt; 0
          [alert_reported_ip] =&gt; 80.255.4.52
          [alert_created_time] =&gt; 2015-03-15 15:25:20
          [direct_sending] =&gt; 0
          [ask_to_additional_reviwer] =&gt; 0
          [ask_additional_reviewer_at] =&gt; 
          [alert_reviewers] =&gt; 
          [alert_confirmed_by] =&gt; 56
          [confirmed_time] =&gt; 2015-03-15 19:26:35
          [alert_decliened_by] =&gt; 
          [decliened_time] =&gt; 
          [alert_status] =&gt; 1
          [community_id] =&gt; 1
          [hashtag] =&gt; #Nick
          [community_title] =&gt; Test community Nick #Nick asdfsa ds adsfa sd asdf asd asdf asf asdfa sdf
          [community_url] =&gt; test-community-nick-nick-asdfsa-ds-adsfa-sd-asdf-asd-asdf-as
          [user_type] =&gt; Apprentice
          [user_type_image] =&gt; Apprentice1416902127.png
      )
  
  [1] =&gt; stdClass Object
      (
          [user_id] =&gt; 55
          [owner] =&gt; abc@gmail.com
          [sender] =&gt; Steve
          [alert_id] =&gt; 17
          [alert_community_id] =&gt; 1
          [alert_user_id] =&gt; 55
          [alert_text] =&gt; asdfasdf
          [alert_url] =&gt; asdfasdf
          [alert_note] =&gt; 
          [alert_source_proof] =&gt; asdfasdfsadf
          [alert_proof_image] =&gt; 
          [is_time_critical] =&gt; 0
          [alert_reported_ip] =&gt; 80.255.4.52
          [alert_created_time] =&gt; 2015-03-15 15:20:34
          [direct_sending] =&gt; 0
          [ask_to_additional_reviwer] =&gt; 0
          [ask_additional_reviewer_at] =&gt; 
          [alert_reviewers] =&gt; 
          [alert_confirmed_by] =&gt; 54
          [confirmed_time] =&gt; 2015-03-15 19:21:19
          [alert_decliened_by] =&gt; 
          [decliened_time] =&gt; 
          [alert_status] =&gt; 1
          [community_id] =&gt; 1
          [hashtag] =&gt; #Nick
          [community_title] =&gt; Test community Nick #Nick asdfsa ds adsfa sd asdf asd asdf asf asdfa sdf
          [community_url] =&gt; test-community-nick-nick-asdfsa-ds-adsfa-sd-asdf-asd-asdf-as
          [user_type] =&gt; Rising star
          [user_type_image] =&gt; RisingStar141690.png
      )
  
  [2] =&gt; stdClass Object
      (
          [user_id] =&gt; 55
          [owner] =&gt; monadshare@gmail.com
          [sender] =&gt; chris
          [alert_id] =&gt; 17
          [alert_community_id] =&gt; 1
          [alert_user_id] =&gt; 55
          [alert_text] =&gt; asdfasdf
          [alert_url] =&gt; asdfasdf
          [alert_note] =&gt; 
          [alert_source_proof] =&gt; asdfasdfsadf
          [alert_proof_image] =&gt; 
          [is_time_critical] =&gt; 0
          [alert_reported_ip] =&gt; 80.255.4.52
          [alert_created_time] =&gt; 2015-03-15 15:20:34
          [direct_sending] =&gt; 0
          [ask_to_additional_reviwer] =&gt; 0
          [ask_additional_reviewer_at] =&gt; 
          [alert_reviewers] =&gt; 
          [alert_confirmed_by] =&gt; 54
          [confirmed_time] =&gt; 2015-03-15 19:21:19
          [alert_decliened_by] =&gt; 
          [decliened_time] =&gt; 
          [alert_status] =&gt; 1
          [community_id] =&gt; 1
          [hashtag] =&gt; #Nick
          [community_title] =&gt; Test community Nick #Nick asdfsa ds adsfa sd asdf asd asdf asf asdfa sdf
          [community_url] =&gt; test-community-nick-nick-asdfsa-ds-adsfa-sd-asdf-asd-asdf-as
          [user_type] =&gt; Rising star
          [user_type_image] =&gt; RisingStar141690.png
      )
  
  [3] =&gt; stdClass Object
      (
          [user_id] =&gt; 55
          [owner] =&gt; monadshare@gmail.com
          [sender] =&gt; John
          [alert_id] =&gt; 16
          [alert_community_id] =&gt; 1
          [alert_user_id] =&gt; 55
          [alert_text] =&gt; asdf
          [alert_url] =&gt; asdf-1
          [alert_note] =&gt; 
          [alert_source_proof] =&gt; asfd
          [alert_proof_image] =&gt; 
          [is_time_critical] =&gt; 0
          [alert_reported_ip] =&gt; 80.255.4.52
          [alert_created_time] =&gt; 2015-03-15 15:08:48
          [direct_sending] =&gt; 0
          [ask_to_additional_reviwer] =&gt; 0
          [ask_additional_reviewer_at] =&gt; 
          [alert_reviewers] =&gt; 
          [alert_confirmed_by] =&gt; 56
          [confirmed_time] =&gt; 2015-03-15 19:09:16
          [alert_decliened_by] =&gt; 
          [decliened_time] =&gt; 
          [alert_status] =&gt; 1
          [community_id] =&gt; 1
          [hashtag] =&gt; #Nick
          [community_title] =&gt; Test community Nick #Nick asdfsa ds adsfa sd asdf asd asdf asf asdfa sdf
          [community_url] =&gt; test-community-nick-nick-asdfsa-ds-adsfa-sd-asdf-asd-asdf-as
          [user_type] =&gt; Rising star
          [user_type_image] =&gt; RisingStar141690.png
      )
  
    )         
  </code></pre>
  
  <p>and i want look like this </p>
  
  <pre><code> Array(
  [0] =&gt; stdClass Object
      (
          [user_id] =&gt; 52
          [owner] =&gt; abc@gmail.com
          [sender] =&gt; Steve
          [alert_id] =&gt; 18
          [alert_community_id] =&gt; 1
          [alert_user_id] =&gt; 52
          [alert_text] =&gt; asdfasdf
          [alert_url] =&gt; asdfasdf-1
          [alert_note] =&gt; 
          [alert_source_proof] =&gt; asdfasdfasf
          [alert_proof_image] =&gt; 
          [is_time_critical] =&gt; 0
          [alert_reported_ip] =&gt; 80.255.4.52
          [alert_created_time] =&gt; 2015-03-15 15:25:20
          [direct_sending] =&gt; 0
          [ask_to_additional_reviwer] =&gt; 0
          [ask_additional_reviewer_at] =&gt; 
          [alert_reviewers] =&gt; 
          [alert_confirmed_by] =&gt; 56
          [confirmed_time] =&gt; 2015-03-15 19:26:35
          [alert_decliened_by] =&gt; 
          [decliened_time] =&gt; 
          [alert_status] =&gt; 1
          [community_id] =&gt; 1
          [hashtag] =&gt; #Nick
          [community_title] =&gt; Test community Nick #Nick asdfsa ds adsfa sd asdf asd asdf asf asdfa sdf
          [community_url] =&gt; test-community-nick-nick-asdfsa-ds-adsfa-sd-asdf-asd-asdf-as
          [user_type] =&gt; Apprentice
          [user_type_image] =&gt; Apprentice1416902127.png
      )
  
  [1] =&gt; stdClass Object
      (
          [user_id] =&gt; 55
          [owner] =&gt; abc@gmail.com
          [sender] =&gt; Steve,chris,John
          [alert_id] =&gt; 17
          [alert_community_id] =&gt; 1
          [alert_user_id] =&gt; 55
          [alert_text] =&gt; asdfasdf
          [alert_url] =&gt; asdfasdf
          [alert_note] =&gt; 
          [alert_source_proof] =&gt; asdfasdfsadf
          [alert_proof_image] =&gt; 
          [is_time_critical] =&gt; 0
          [alert_reported_ip] =&gt; 80.255.4.52
          [alert_created_time] =&gt; 2015-03-15 15:20:34
          [direct_sending] =&gt; 0
          [ask_to_additional_reviwer] =&gt; 0
          [ask_additional_reviewer_at] =&gt; 
          [alert_reviewers] =&gt; 
          [alert_confirmed_by] =&gt; 54
          [confirmed_time] =&gt; 2015-03-15 19:21:19
          [alert_decliened_by] =&gt; 
          [decliened_time] =&gt; 
          [alert_status] =&gt; 1
          [community_id] =&gt; 1
          [hashtag] =&gt; #Nick
          [community_title] =&gt; Test community Nick #Nick asdfsa ds adsfa sd asdf asd asdf asf asdfa sdf
          [community_url] =&gt; test-community-nick-nick-asdfsa-ds-adsfa-sd-asdf-asd-asdf-as
          [user_type] =&gt; Rising star
          [user_type_image] =&gt; RisingStar141690.png
      )
    )
  </code></pre>
  
  <p>Please help me </p>